Browse Source

test: add format filesize megabytes test

main
fdai7381 2 years ago
committed by fdai7451
parent
commit
6f122443fd
  1. 5
      src/builtins/ls.rs

5
src/builtins/ls.rs

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