about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-13T17·20+0300
committertazjin <tazjin@tvl.su>2022-08-29T20·13+0000
commit36748fe4f65d85049c5aec2df4828668803ad30b (patch)
treea345f43a2179884707347f695cc21a9d5498d73a /tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix
parent52f4915317e22b14d78fe82fae83444239d5107f (diff)
test(tvix/eval): add basic tests for let expressions r/4527
Change-Id: I788504f0c1848a1422c99006bf659738df614716
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6191
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix')
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix
new file mode 100644
index 000000000000..b440a220ff6d
--- /dev/null
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-simple-let.nix
@@ -0,0 +1,4 @@
+let
+  a = 1;
+  b = 2;
+in a + b