mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
fix overflow issue in Num.isMultipleOf
This commit is contained in:
parent
c2da776ff4
commit
b6d8b301d5
2 changed files with 58 additions and 26 deletions
|
@ -1389,5 +1389,8 @@ mod gen_num {
|
|||
// false
|
||||
assert_evals_to!("Num.isMultipleOf 5 2", false, bool);
|
||||
assert_evals_to!("Num.isMultipleOf 5 0", false, bool);
|
||||
|
||||
// overflow
|
||||
assert_evals_to!("Num.isMultipleOf -9223372036854775808 -1", true, bool);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue