diff options
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] |