mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Add Lowlevel::Not
This commit is contained in:
parent
214ee6ed8e
commit
3c01ae10c6
3 changed files with 39 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue