fix overflow on negative bytes (#7070)

This commit is contained in:
David Matos
2022-11-10 22:33:15 +01:00
committed by GitHub
parent 18d7e64660
commit 312e9bf5d6
3 changed files with 33 additions and 5 deletions

View File

@ -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")
}