diff options
author | janbridley <bradleyjenj@gmail.com> | 2024-11-08 10:53:00 -0500 |
---|---|---|
committer | andy.boot <bootandy@gmail.com> | 2024-11-08 22:50:03 +0000 |
commit | 1372815007572ab1c2a63ee753381e4b4f60e95e (patch) | |
tree | e5b4fead51a67bacf96689c35c636c417f6bb749 | |
parent | 7c9e2f18338cbf290613ae1245e7d8f48f0ff0bd (diff) |
-rw-r--r-- | src/display.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs index f429944..18d56aa 100644 --- a/src/display.rs +++ b/src/display.rs @@ -566,8 +566,14 @@ mod tests { assert_eq!(human_readable_number(1024 * 1024 * 1024 - 1, ""), "1023M"); assert_eq!(human_readable_number(1024 * 1024 * 1024 * 20, ""), "20G"); assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024, ""), "1.0T"); - assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024 * 234, ""), "234T"); - assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024 * 1024, ""), "1.0P"); + assert_eq!( + human_readable_number(1024 * 1024 * 1024 * 1024 * 234, ""), + "234T" + ); + assert_eq!( + human_readable_number(1024 * 1024 * 1024 * 1024 * 1024, ""), + "1.0P" + ); } #[test] |