mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
Combined test for good measure
This commit is contained in:
parent
3c01ae10c6
commit
db497539bc
@ -111,6 +111,24 @@ fn neq_bool_tag() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn bool_logic() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
bool1 = Bool.true
|
||||
bool2 = Bool.false
|
||||
bool3 = !bool1
|
||||
|
||||
(bool1 && bool2) || bool2 && bool3
|
||||
"#
|
||||
),
|
||||
false,
|
||||
bool
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn and_bool() {
|
||||
|
Loading…
Reference in New Issue
Block a user