mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Merge pull request #6457 from roc-lang/division-by-zero
Division by zero
This commit is contained in:
commit
7c19b42a99
90 changed files with 563 additions and 546 deletions
|
@ -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 }");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue