feat(tvix/eval): Implement builtins.seq
Since we already have infra for forcing arguments to builtins, this ends up being almost *too* simple - we just return the second argument! Change-Id: I070d3d0b551c4dcdac095f67b31e22e0de90cbd7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6999 Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
6e30fbbf7b
commit
89dbcbbb3d
4 changed files with 8 additions and 0 deletions
1
tvix/eval/src/tests/tvix_tests/eval-fail-seq.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-fail-seq.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
builtins.seq (abort "foo") 2
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-seq.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
2
|
||||
1
tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-seq.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
builtins.seq 1 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue