Skip to content

Commit 307c159

Browse files
committed
WIP: Add fuzzy tests to get incompatibility issues
1 parent 68498fa commit 307c159

File tree

10 files changed

+722
-54
lines changed

10 files changed

+722
-54
lines changed

Cargo.lock

+235-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+11-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ readme = "README.md"
1010
[dependencies]
1111
chrono = { version="0.4", default-features=false, features=["std", "alloc", "clock"] }
1212
num-traits = "0.2.19"
13-
winnow = "0.5.34"
13+
winnow = { version="0.5.34"}
1414

1515
[dev-dependencies]
1616
anyhow = "1.0.86"
17+
winnow = { version="0.5.34", features = ["debug"] }
18+
19+
[features]
20+
debug = ["winnow/debug"]
21+
22+
[[bin]]
23+
path = "bin/main.rs"
24+
name = "parse_datetime"
25+
test = false
26+
bench = false

bin/main.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
use parse_datetime::parse_datetime;
2+
3+
fn main() {
4+
let date: String = std::env::args().nth(1).unwrap_or("".to_string());
5+
println!("{}", parse_datetime(&date).unwrap().format("%+"))
6+
}

0 commit comments

Comments
 (0)