From 6f122443fd3d00cd07617fa893df8415bb455f19 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Mon, 30 Jan 2023 20:22:04 +0100 Subject: [PATCH] test: add format filesize megabytes test --- src/builtins/ls.rs | 5 +++++ 1 file changed, 5 insertions(+) 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"); + } }