test(tvix/eval): add basic tests for let expressions

Change-Id: I788504f0c1848a1422c99006bf659738df614716
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6191
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-13 20:20:34 +03:00 committed by tazjin
parent 52f4915317
commit 36748fe4f6
6 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1 @@
[ 1 2 3 ]

View file

@ -0,0 +1,5 @@
let
a = 1;
"b" = 2;
${"c"} = 3;
in [ a b c ]

View file

@ -0,0 +1 @@
3

View file

@ -0,0 +1,5 @@
let
a = 1;
b = 2;
c = a + b;
in c

View file

@ -0,0 +1 @@
3

View file

@ -0,0 +1,4 @@
let
a = 1;
b = 2;
in a + b