Browse Source

test: add format filesize megabytes test

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

5
src/builtins/ls.rs

@ -117,4 +117,9 @@ mod tests {
fn test_format_filesize_kilobytes() { fn test_format_filesize_kilobytes() {
assert_eq!(format_filesize(69420), "69KB"); assert_eq!(format_filesize(69420), "69KB");
} }
#[test]
fn test_format_filesize_megabytes() {
assert_eq!(format_filesize(69420420), "69MB");
}
} }
Loading…
Cancel
Save