diff options
author | sterni <sternenseemann@systemli.org> | 2023-06-02T19·38+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-06-12T09·38+0000 |
commit | 5139cc45c2ce1736509f3f0ebf68a71c10ace939 (patch) | |
tree | 5b3b8efae54dbad20e6433abb79d8512fddd8943 /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring-negative-length.nix | |
parent | 5733274876e6f6c0be8b43b4a46bdfeea73fa761 (diff) |
test(tvix/eval): builtins.substring's behavior with negative args r/6268
Change-Id: Ie8b97d174e9d58e33bf08c9b9e0afeeddd089ba8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8700 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring-negative-length.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring-negative-length.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring-negative-length.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring-negative-length.nix new file mode 100644 index 000000000000..062e2c0581d7 --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-substring-negative-length.nix @@ -0,0 +1,5 @@ +[ + (builtins.substring 0 (-1) "SIP dial") + (builtins.substring 13 (-1) "Nichtraucher Lounge") + (builtins.substring 12 (-2) "Nichtraucher Lounge") +] |