Combined test for good measure

This commit is contained in:
Ahmad Sattar 2023-02-16 23:08:30 +01:00
parent 3c01ae10c6
commit db497539bc
No known key found for this signature in database
GPG Key ID: 457C18819D9C9570

View File

@ -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() {