diff options
author | skanehira <sho19921005@gmail.com> | 2022-10-01 03:02:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 14:02:44 -0400 |
commit | 1058d1868fcc28ce115d1cc231e66016308b76ce (patch) | |
tree | 3484e6234439eb5521be172be8970933eb4a42d1 /cli | |
parent | 636b448f3c9eaa29ac0452547f6e16e8fb1fb0f6 (diff) |
test(cli): add test cases (#16091)
Fixes: https://github.com/denoland/deno/issues/16090
Diffstat (limited to 'cli')
-rw-r--r-- | cli/display.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/display.rs b/cli/display.rs index bf7254306..bcd23f47c 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] |