mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Merge pull request #678 from rtfeldman/record-bool-tests
More REPL Improvements
This commit is contained in:
commit
d21ffb7eee
5 changed files with 472 additions and 212 deletions
|
@ -820,4 +820,28 @@ mod gen_records {
|
|||
i64
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn booleans_in_record() {
|
||||
assert_evals_to!(
|
||||
indoc!("{ x: 1 == 1, y: 1 == 1 }"),
|
||||
(true, true),
|
||||
(bool, bool)
|
||||
);
|
||||
assert_evals_to!(
|
||||
indoc!("{ x: 1 != 1, y: 1 == 1 }"),
|
||||
(false, true),
|
||||
(bool, bool)
|
||||
);
|
||||
assert_evals_to!(
|
||||
indoc!("{ x: 1 == 1, y: 1 != 1 }"),
|
||||
(true, false),
|
||||
(bool, bool)
|
||||
);
|
||||
assert_evals_to!(
|
||||
indoc!("{ x: 1 != 1, y: 1 != 1 }"),
|
||||
(false, false),
|
||||
(bool, bool)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue