From 8bebaca3f25d20f20bffb0161a5e883a4ea63852 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Mon, 30 Jan 2023 20:23:06 +0100 Subject: [PATCH] test: add format filesize gigabytes test --- src/builtins/ls.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builtins/ls.rs b/src/builtins/ls.rs index 9413944..521c107 100644 --- a/src/builtins/ls.rs +++ b/src/builtins/ls.rs @@ -122,4 +122,9 @@ mod tests { fn test_format_filesize_megabytes() { assert_eq!(format_filesize(69420420), "69MB"); } + + #[test] + fn test_format_filesize_gigabytes() { + assert_eq!(format_filesize(69420420420), "69GB"); + } }