mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
test(cli): add test cases (#16091)
Fixes: https://github.com/denoland/deno/issues/16090
This commit is contained in:
parent
636b448f3c
commit
1058d1868f
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@ mod tests {
|
||||||
human_size((24_i64 * 1024 * 1024 * 1024 * 1024) as f64),
|
human_size((24_i64 * 1024 * 1024 * 1024 * 1024) as f64),
|
||||||
"24TB"
|
"24TB"
|
||||||
);
|
);
|
||||||
|
assert_eq!(human_size(0_f64), "0B");
|
||||||
|
assert_eq!(human_size(-10_f64), "-10B");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue