mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
parent
3605008fce
commit
34236654af
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 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
"{ x: 123, y: \"Hello\", z: 3.14 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
true,
|
||||
bool
|
||||
);
|
||||
|
||||
assert_evals_to!(
|
||||
"{ x: 234, y: \"Hello\", z: 3 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
"{ x: 234, y: \"Hello\", z: 3.14 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
false,
|
||||
bool
|
||||
);
|
||||
assert_evals_to!(
|
||||
"{ x: 123, y: \"World\", z: 3 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
"{ x: 123, y: \"World\", z: 3.14 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
false,
|
||||
bool
|
||||
);
|
||||
assert_evals_to!(
|
||||
"{ x: 123, y: \"Hello\", z: 1 } == { x: 123, y: \"Hello\", z: 3 }",
|
||||
"{ x: 123, y: \"Hello\", z: 1.11 } == { x: 123, y: \"Hello\", z: 3.14 }",
|
||||
false,
|
||||
bool
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue