Merge pull request #6457 from roc-lang/division-by-zero

Division by zero
This commit is contained in:
Richard Feldman 2024-01-29 08:37:31 -05:00 committed by GitHub
commit 7c19b42a99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
90 changed files with 563 additions and 546 deletions

View file

@ -100,6 +100,12 @@ fn num_ceil_checked_division_success() {
)
}
#[test]
fn float_division_by_zero() {
expect_success("1f64 / 0", "∞ : F64");
expect_success("-1f64 / 0", "-∞ : F64");
}
#[test]
fn bool_in_record() {
expect_success("{ x: 1 == 1 }", "{ x: Bool.true } : { x : Bool }");