From de364b586873307c0fafe020441a0cc59732dd29 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Mon, 30 Jan 2023 20:18:32 +0100 Subject: [PATCH] test: add format filesize kilobytes test --- src/builtins/ls.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builtins/ls.rs b/src/builtins/ls.rs index 63beb84..826d81f 100644 --- a/src/builtins/ls.rs +++ b/src/builtins/ls.rs @@ -112,4 +112,9 @@ mod tests { fn test_format_filesize_bytes() { assert_eq!(format_filesize(6969), "6969B"); } + + #[test] + fn test_format_filesize_kilobytes() { + assert_eq!(format_filesize(69420), "69KB"); + } }