mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Fix gen_compare::record test
Unbound floating point numbers cannot be compared for Eq as of obligation checking - this test is a correction to enforce that!
This commit is contained in:
parent
590535a42b
commit
e8492f279e
1 changed files with 4 additions and 4 deletions
|
@ -122,23 +122,23 @@ fn empty_record() {
|
|||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn record() {
|
||||
assert_evals_to!(
|
||||
"{ x: 123, y: \"Hello\", z: 3.14 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
"{ x: 123, y: \"Hello\", z: 3 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
true,
|
||||
bool
|
||||
);
|
||||
|
||||
assert_evals_to!(
|
||||
"{ x: 234, y: \"Hello\", z: 3.14 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
"{ x: 234, y: \"Hello\", z: 3 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
false,
|
||||
bool
|
||||
);
|
||||
assert_evals_to!(
|
||||
"{ x: 123, y: \"World\", z: 3.14 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
"{ x: 123, y: \"World\", z: 3 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
false,
|
||||
bool
|
||||
);
|
||||
assert_evals_to!(
|
||||
"{ x: 123, y: \"Hello\", z: 1.11 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
"{ x: 123, y: \"Hello\", z: 1 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
false,
|
||||
bool
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue