Add Lowlevel::Not

This commit is contained in:
Ahmad Sattar 2023-02-16 22:45:56 +01:00
parent 214ee6ed8e
commit 3c01ae10c6
No known key found for this signature in database
GPG key ID: 457C18819D9C9570
3 changed files with 39 additions and 0 deletions

View file

@ -129,6 +129,16 @@ fn or_bool() {
assert_evals_to!("Bool.false || Bool.false", false, bool);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
fn not_bool() {
assert_evals_to!("!Bool.true", false, bool);
assert_evals_to!("!Bool.false", true, bool);
assert_evals_to!("!(!Bool.true)", true, bool);
assert_evals_to!("!(!Bool.false)", false, bool);
}
#[test]
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
fn empty_record() {