diff --git a/src/builtins/ls.rs b/src/builtins/ls.rs index 826d81f..9413944 100644 --- a/src/builtins/ls.rs +++ b/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"); + } }