make duration pretty print clearer (#2150)

* make duration pretty print clearer

* fix typo and tests

* fix typo and tests
This commit is contained in:
Jonathan Turner
2020-07-10 14:06:52 -07:00
committed by GitHub
parent f32ab696d3
commit 6820d70e7d
3 changed files with 40 additions and 28 deletions

View File

@ -168,7 +168,7 @@ fn duration_math() {
"#
));
assert_eq!(actual.out, "8:00:00:00.0");
assert_eq!(actual.out, "8d");
}
#[test]
@ -180,7 +180,7 @@ fn duration_math_with_nanoseconds() {
"#
));
assert_eq!(actual.out, "7:00:00:00.00000001");
assert_eq!(actual.out, "7d 10ns");
}
#[test]
@ -192,7 +192,7 @@ fn duration_math_with_negative() {
"#
));
assert_eq!(actual.out, "-6:00:00:00.0");
assert_eq!(actual.out, "-6d");
}
#[test]