test(tvix/eval): add tests for legacy let syntax
Change-Id: I42d6240056c93cf90986ef3fec88b42f804b06ef Reviewed-on: https://cl.tvl.fyi/c/depot/+/6613 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
15c8e8c459
commit
0532cb6172
4 changed files with 15 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
{ one = 42; two = 42; }
|
|
@ -0,0 +1,9 @@
|
|||
let {
|
||||
a = 21;
|
||||
b = body.one;
|
||||
|
||||
body = {
|
||||
one = a * 2;
|
||||
two = b;
|
||||
};
|
||||
}
|
1
tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let.exp
Normal file
|
@ -0,0 +1 @@
|
|||
42
|
4
tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let.nix
Normal file
4
tvix/eval/src/tests/tvix_tests/eval-okay-legacy-let.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
let {
|
||||
a = 21;
|
||||
body = a * 2;
|
||||
}
|
Loading…
Reference in a new issue