You've already forked parse_datetime
mirror of
https://github.com/uutils/parse_datetime.git
synced 2026-06-10 16:13:15 -07:00
Add assertions for month and day in date parsing test
This commit is contained in:
committed by
Sylvestre Ledru
parent
62f26a49b3
commit
16ce783763
@@ -61,7 +61,8 @@ let dt = parse_datetime("12000-01-01").unwrap();
|
||||
match dt {
|
||||
ParsedDateTime::Extended(ext) => {
|
||||
assert_eq!(ext.year, 12000);
|
||||
assert_eq!(ext.to_string(), "12000-01-01 00:00:00+00:00");
|
||||
assert_eq!(ext.month, 1);
|
||||
assert_eq!(ext.day, 1);
|
||||
}
|
||||
ParsedDateTime::InRange(_) => unreachable!("year 12000 is out of jiff range"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user