about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-11-23T14·49+0100
committersterni <sternenseemann@systemli.org>2022-11-24T13·25+0000
commitbc537d2c0dcabe7324929e2fe2f310d4a9386095 (patch)
tree91112eaf5cf1306c47744b6f93fdcacb80385e09
parent467cb89145340226d5f7e92d38f2ddeef50c28d4 (diff)
test(tvix/eval): test limits of builtins.seq's forcing r/5308
Change-Id: I6dfc9108220762ef3372cd2739e91d79c01a55e1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7366
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp2
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp b/tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp
index 0cfbf08886fc..d81cc0710eb6 100644
--- a/tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp
@@ -1 +1 @@
-2
+42
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix
index 0a9a21c03b62..fd0806c199a5 100644
--- a/tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix
@@ -1 +1 @@
-builtins.seq 1 2
+(builtins.seq 1 2) + (builtins.seq [ (throw "list") ] 20) + (builtins.seq { boing = throw "set"; } 20)