This commit is contained in:
Bel LaPointe
2024-05-15 22:27:16 -04:00
parent 233967e177
commit 66f533a210

View File

@@ -75,7 +75,7 @@ mod test_when {
fn parse() {
match When::new("1d2h3m".to_string()) {
Ok(when) => {
assert!(false, "not impl: {:?}", when);
assert_eq!(1714521600 + 60*3 + 60*60*2 + 60*60*24*1, when.next(TS::new("2024-05-01T00").unwrap()));
},
Err(err) => assert!(false, "failed to parse when: {}", err),
};