tests: initial integration tests
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I09ed2eea568edfaecdb800197bc36c416a6a6964
This commit is contained in:
parent
347175bb86
commit
8bce6c27b5
6 changed files with 148 additions and 0 deletions
13
tests/integration/ir_builtins_test.nix
Normal file
13
tests/integration/ir_builtins_test.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Test our custom IR builtins
|
||||
let
|
||||
# Test nixIR_info
|
||||
info = builtins.nixIR_info;
|
||||
|
||||
# Test nixIR_compile
|
||||
compiled = builtins.nixIR_compile "let x = 10; in x + 5";
|
||||
|
||||
# Test that normal builtins still work
|
||||
list = builtins.map (x: x * 2) [1 2 3];
|
||||
in {
|
||||
inherit info compiled list;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue