Browse Source

test: add format filesize gigabytes test

main
fdai7381 2 years ago
parent
commit
fe89de0855
  1. 5
      src/builtins/ls.rs

5
src/builtins/ls.rs

@ -122,4 +122,9 @@ mod tests {
fn test_format_filesize_megabytes() { fn test_format_filesize_megabytes() {
assert_eq!(format_filesize(69420420), "69MB"); assert_eq!(format_filesize(69420420), "69MB");
} }
#[test]
fn test_format_filesize_gigabytes() {
assert_eq!(format_filesize(69420420420), "69GB");
}
} }
Loading…
Cancel
Save