From 1058d1868fcc28ce115d1cc231e66016308b76ce Mon Sep 17 00:00:00 2001 From: skanehira Date: Sat, 1 Oct 2022 03:02:44 +0900 Subject: [PATCH] test(cli): add test cases (#16091) Fixes: https://github.com/denoland/deno/issues/16090 --- cli/display.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/display.rs b/cli/display.rs index bf7254306a..bcd23f47c8 100644 --- a/cli/display.rs +++ b/cli/display.rs @@ -52,6 +52,8 @@ mod tests { human_size((24_i64 * 1024 * 1024 * 1024 * 1024) as f64), "24TB" ); + assert_eq!(human_size(0_f64), "0B"); + assert_eq!(human_size(-10_f64), "-10B"); } #[test]