aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 08:07:16 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 08:07:16 +0100
commite81ee8b3371bf1cf9f4415732132f9c24ff736d9 (patch)
tree86057135fe2bf56f767b6392ba1a62a3b0e7f46c /tests/functional/lang
parent2c85fcce875404f07ce29f7a2bb2ed970d2d5840 (diff)
Merge pull request #9785 from hercules-ci/test-substring-negative
tests/functional/lang: Test substring with negative length (cherry picked from commit 86156d05dd33f856d8804f89669a7fe9b81f1a0d) Change-Id: I2e2086027a43f8111ba5068ac16590eaa0b798d4
Diffstat (limited to 'tests/functional/lang')
-rw-r--r--tests/functional/lang/eval-okay-substring.exp2
-rw-r--r--tests/functional/lang/eval-okay-substring.nix2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/functional/lang/eval-okay-substring.exp b/tests/functional/lang/eval-okay-substring.exp
index 6aace04b0..f48b4623a 100644
--- a/tests/functional/lang/eval-okay-substring.exp
+++ b/tests/functional/lang/eval-okay-substring.exp
@@ -1 +1 @@
-"ooxfoobarybarzobaabbc"
+"ooxfoobarybarzobaabbc_bad"
diff --git a/tests/functional/lang/eval-okay-substring.nix b/tests/functional/lang/eval-okay-substring.nix
index 424af00d9..54c97e162 100644
--- a/tests/functional/lang/eval-okay-substring.nix
+++ b/tests/functional/lang/eval-okay-substring.nix
@@ -19,3 +19,5 @@ substring 1 2 s
+ substring 3 1 s
+ "c"
+ substring 5 10 "perl"
++ "_"
++ substring 3 (-1) "tebbad"