mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
format infinite float as the ∞ utf8 symbol
This commit is contained in:
parent
4a593a5b77
commit
0b0127f45e
2 changed files with 14 additions and 1 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