Add Lowlevel::And

This commit is contained in:
Ahmad Sattar 2023-02-16 21:01:12 +01:00
parent 82c0aa083d
commit f8b0a99e6d
No known key found for this signature in database
GPG key ID: 457C18819D9C9570
3 changed files with 41 additions and 0 deletions

View file

@ -111,6 +111,15 @@ fn neq_bool_tag() {
);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn and_bool() {
assert_evals_to!("Bool.true && Bool.true", true, bool);
assert_evals_to!("Bool.true && Bool.false", false, bool);
assert_evals_to!("Bool.false && Bool.true", false, bool);
assert_evals_to!("Bool.false && Bool.false", false, bool);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn empty_record() {