mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 05:28:23 +02:00
fix overflow on negative bytes (#7070)
This commit is contained in:
@ -104,3 +104,8 @@ fn floating_add() -> TestResult {
|
||||
fn precedence_of_or_groups() -> TestResult {
|
||||
run_test(r#"4 mod 3 == 0 || 5 mod 5 == 0"#, "true")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_filesize_op() -> TestResult {
|
||||
run_test("-5kb + 4kb", "-1,000 B")
|
||||
}
|
||||
|
Reference in New Issue
Block a user