-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to chrono 0.4.34 #5385
Update to chrono 0.4.34 #5385
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1013,9 +1013,9 @@ mod tests { | |
assert_eq!(pretty[2], "0 days 0 hours 0 mins 0.000001000 secs"); | ||
assert_eq!(iso[3], "-PT0.000001S"); | ||
assert_eq!(pretty[3], "0 days 0 hours 0 mins -0.000001000 secs"); | ||
assert_eq!(iso[4], "P45DT50554.123456789S"); | ||
assert_eq!(iso[4], "PT3938554.123456789S"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did these values change? They look closer to the pretty version with the former formatting (like 45 days) Is this something we need to change in pretty print? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As per the PR description - chronotope/chrono#1328 changed the formatting to be more "correct". As the pretty version is focused on human readability, not precision, I am not sure it needs to be updated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense |
||
assert_eq!(pretty[4], "45 days 14 hours 2 mins 34.123456789 secs"); | ||
assert_eq!(iso[5], "-P45DT50554.123456789S"); | ||
assert_eq!(iso[5], "-PT3938554.123456789S"); | ||
assert_eq!(pretty[5], "-45 days -14 hours -2 mins -34.123456789 secs"); | ||
|
||
let array = DurationMicrosecondArray::from(vec![ | ||
|
@@ -1037,9 +1037,9 @@ mod tests { | |
assert_eq!(pretty[2], "0 days 0 hours 0 mins 0.001000 secs"); | ||
assert_eq!(iso[3], "-PT0.001S"); | ||
assert_eq!(pretty[3], "0 days 0 hours 0 mins -0.001000 secs"); | ||
assert_eq!(iso[4], "P45DT50554.123456S"); | ||
assert_eq!(iso[4], "PT3938554.123456S"); | ||
assert_eq!(pretty[4], "45 days 14 hours 2 mins 34.123456 secs"); | ||
assert_eq!(iso[5], "-P45DT50554.123456S"); | ||
assert_eq!(iso[5], "-PT3938554.123456S"); | ||
assert_eq!(pretty[5], "-45 days -14 hours -2 mins -34.123456 secs"); | ||
|
||
let array = DurationMillisecondArray::from(vec![ | ||
|
@@ -1061,9 +1061,9 @@ mod tests { | |
assert_eq!(pretty[2], "0 days 0 hours 0 mins 1.000 secs"); | ||
assert_eq!(iso[3], "-PT1S"); | ||
assert_eq!(pretty[3], "0 days 0 hours 0 mins -1.000 secs"); | ||
assert_eq!(iso[4], "P45DT50554.123S"); | ||
assert_eq!(iso[4], "PT3938554.123S"); | ||
assert_eq!(pretty[4], "45 days 14 hours 2 mins 34.123 secs"); | ||
assert_eq!(iso[5], "-P45DT50554.123S"); | ||
assert_eq!(iso[5], "-PT3938554.123S"); | ||
assert_eq!(pretty[5], "-45 days -14 hours -2 mins -34.123 secs"); | ||
|
||
let array = DurationSecondArray::from(vec![ | ||
|
@@ -1085,9 +1085,9 @@ mod tests { | |
assert_eq!(pretty[2], "0 days 0 hours 16 mins 40 secs"); | ||
assert_eq!(iso[3], "-PT1000S"); | ||
assert_eq!(pretty[3], "0 days 0 hours -16 mins -40 secs"); | ||
assert_eq!(iso[4], "P45DT50554S"); | ||
assert_eq!(iso[4], "PT3938554S"); | ||
assert_eq!(pretty[4], "45 days 14 hours 2 mins 34 secs"); | ||
assert_eq!(iso[5], "-P45DT50554S"); | ||
assert_eq!(iso[5], "-PT3938554S"); | ||
assert_eq!(pretty[5], "-45 days -14 hours -2 mins -34 secs"); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1192,7 +1192,7 @@ mod tests { | |
|
||
assert_json_eq( | ||
&buf, | ||
r#"{"duration_sec":"PT120S","duration_msec":"PT0.120S","duration_usec":"PT0.000120S","duration_nsec":"PT0.000000120S","name":"a"} | ||
r#"{"duration_sec":"PT120S","duration_msec":"PT0.12S","duration_usec":"PT0.00012S","duration_nsec":"PT0.00000012S","name":"a"} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this looks better |
||
{"name":"b"} | ||
"#, | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahash 0.8.8 bumped the MSRV to 1.72