tests: initial test suite for IR compiler
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I70cd1dfa45add9df58a44add69fbd30a6a6a6964
This commit is contained in:
parent
22c92bfdd5
commit
49f64c9c98
28 changed files with 151 additions and 0 deletions
11
tests/shortcircuit.nix
Normal file
11
tests/shortcircuit.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Test short-circuit evaluation
|
||||
let
|
||||
alwaysFalse = false;
|
||||
alwaysTrue = true;
|
||||
x = 10;
|
||||
in
|
||||
{
|
||||
and_false = alwaysFalse && alwaysTrue;
|
||||
or_true = alwaysTrue || alwaysFalse;
|
||||
impl_false = alwaysFalse -> alwaysFalse;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue