Skip to content

Commit

Permalink
Format src/display.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley authored and bootandy committed Nov 8, 2024
1 parent 7c9e2f1 commit 1372815
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1372815

Please sign in to comment.