summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanbridley <bradleyjenj@gmail.com>2024-11-08 10:53:00 -0500
committerandy.boot <bootandy@gmail.com>2024-11-08 22:50:03 +0000
commit1372815007572ab1c2a63ee753381e4b4f60e95e (patch)
treee5b4fead51a67bacf96689c35c636c417f6bb749
parent7c9e2f18338cbf290613ae1245e7d8f48f0ff0bd (diff)
Format src/display.rsHEADmaster
-rw-r--r--src/display.rs10
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]