Skip to content

Commit

Permalink
WIP: Add fuzzy tests to get incompatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dhilst committed Sep 15, 2024
1 parent 68498fa commit a434820
Show file tree
Hide file tree
Showing 10 changed files with 722 additions and 54 deletions.
243 changes: 235 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ readme = "README.md"
[dependencies]
chrono = { version="0.4", default-features=false, features=["std", "alloc", "clock"] }
num-traits = "0.2.19"
winnow = "0.5.34"
winnow = { version="0.5.34"}

[dev-dependencies]
anyhow = "1.0.86"
#winnow = { version="0.5.34", features = ["debug"] }

[features]
debug = ["winnow/debug"]

[[bin]]
path = "bin/main.rs"
name = "parse_datetime"
test = false
bench = false
6 changes: 6 additions & 0 deletions bin/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use parse_datetime::parse_datetime;

fn main() {
let date: String = std::env::args().nth(1).unwrap_or("".to_string());
println!("{}", parse_datetime(&date).unwrap().format("%+"))
}
Loading

0 comments on commit a434820

Please sign in to comment.