diff options
author | sterni <sternenseemann@systemli.org> | 2022-09-19T11·09+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-09-20T10·59+0000 |
commit | 7506983ce2748fadef56aa390e61003dbf556a98 (patch) | |
tree | baf43945e2dc9cd3dc5f70e1103276a79e6b8796 /tvix/eval/src/tests/tvix_tests/eval-okay-assert-thunk-condition.nix | |
parent | e04ccc9354ee2112622fe9e6e6df8765bd7685fe (diff) |
fix(tvix/eval): force condition of an assert r/4937
Change-Id: I3ad2234e8a8e4280e498c6d7af8ea0733ed4c7ea Reviewed-on: https://cl.tvl.fyi/c/depot/+/6699 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-assert-thunk-condition.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-assert-thunk-condition.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-assert-thunk-condition.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-assert-thunk-condition.nix new file mode 100644 index 000000000000..8934b3d8cf02 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-assert-thunk-condition.nix @@ -0,0 +1,7 @@ +let + condition = x: y: x < y; +in + +# The function application here will become a thunk which verifies that +# assert forces the condition expression correctly. +assert condition 21 42; 21 |