snix/tvix/eval/src/tests
binarycat beb7f57c73 fix(tvix/eval): handle builtins.split matching the empty string
This prevents the following statements from looping endlessly:

```
builtins.split "(.*)" ""
builtins.split "([abc]*)" "abc"
builtins.split "(.*)" "abc"
builtins.split ".*" ""
```

Cover these (and some more examples) in the test suite.

Co-Authored-By: Florian Klink <flokli@flokli.de>
Change-Id: Ibd339f971e0f4e3e5c229816e2be5a8e3836fec9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11743
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2024-06-11 14:59:02 +00:00
..
nix_tests feat(tvix/eval): implement builtins.hashFile 2024-02-29 10:58:21 +00:00
tvix_tests fix(tvix/eval): handle builtins.split matching the empty string 2024-06-11 14:59:02 +00:00
mod.rs refactor(tvix/eval): move nix_tests to separate module 2024-05-30 16:18:30 +00:00
nix_tests.rs fix(tvix/eval): nix_tests.rs's eval_test requires impure flag 2024-05-30 21:52:16 +00:00
one_offs.rs fix(tvix/eval/tests/one_offs): test_source_builtin can be pure 2024-05-30 16:18:30 +00:00