test(tvix/eval): add basic tests for with expressions
Change-Id: I94664090e7a2b060dfbe21c1eeb859fb31e417b0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6225 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
parent
0257f89917
commit
75ba7c0120
4 changed files with 11 additions and 0 deletions
1
tvix/eval/src/tests/tvix_tests/eval-okay-nested-with.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-nested-with.exp
Normal file
|
@ -0,0 +1 @@
|
|||
2
|
4
tvix/eval/src/tests/tvix_tests/eval-okay-nested-with.nix
Normal file
4
tvix/eval/src/tests/tvix_tests/eval-okay-nested-with.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
let
|
||||
set1 = { a = 1; };
|
||||
set2 = { a = 2; };
|
||||
in with set1; with set2; a
|
1
tvix/eval/src/tests/tvix_tests/eval-okay-simple-with.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-simple-with.exp
Normal file
|
@ -0,0 +1 @@
|
|||
1
|
5
tvix/eval/src/tests/tvix_tests/eval-okay-simple-with.nix
Normal file
5
tvix/eval/src/tests/tvix_tests/eval-okay-simple-with.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
let
|
||||
set = {
|
||||
a = 1;
|
||||
};
|
||||
in with set; a
|
Loading…
Reference in a new issue