mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Format src/display.rs
This commit is contained in:
+8
-2
@@ -566,8 +566,14 @@ mod tests {
|
|||||||
assert_eq!(human_readable_number(1024 * 1024 * 1024 - 1, ""), "1023M");
|
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 * 20, ""), "20G");
|
||||||
assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024, ""), "1.0T");
|
assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024, ""), "1.0T");
|
||||||
assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024 * 234, ""), "234T");
|
assert_eq!(
|
||||||
assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024 * 1024, ""), "1.0P");
|
human_readable_number(1024 * 1024 * 1024 * 1024 * 234, ""),
|
||||||
|
"234T"
|
||||||
|
);
|
||||||
|
assert_eq!(
|
||||||
|
human_readable_number(1024 * 1024 * 1024 * 1024 * 1024, ""),
|
||||||
|
"1.0P"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user