libdit: test for left-padding with 0 when formating
This commit is contained in:
parent
87f62f9892
commit
17cb1b29f7
|
@ -3,7 +3,7 @@ use libdit::libdit::unix_to_dit_string;
|
|||
#[test]
|
||||
fn test_unix_to_dit_string() {
|
||||
assert_eq!("3.57.13", unix_to_dit_string(938056.836));
|
||||
|
||||
assert_eq!("3.07.03", unix_to_dit_string(933728.0));
|
||||
assert_eq!("9.99.99", unix_to_dit_string(1672574399.9999));
|
||||
assert_eq!("0.00.00", unix_to_dit_string(1672574400.0000));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue