diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-01-14 12:47:10 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-01-14 12:47:10 +0000 |
commit | 9db190eb31d4adc412d50bc03574951f9a1f9dae (patch) | |
tree | 788c4f95e32361f34dd309b9e82cc477dee41dbc /tests | |
parent | d6c8b995c5c08a6c6a6b18f0b2cf5b4b95cfc1b1 (diff) | |
download | guix-9db190eb31d4adc412d50bc03574951f9a1f9dae.tar.gz |
* builtins.substring: if "start" is beyond the end of the string,
return the empty string.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/eval-okay-substring.exp | 2 | ||||
-rw-r--r-- | tests/lang/eval-okay-substring.nix | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/lang/eval-okay-substring.exp b/tests/lang/eval-okay-substring.exp index d936b7e96f..6aace04b0f 100644 --- a/tests/lang/eval-okay-substring.exp +++ b/tests/lang/eval-okay-substring.exp @@ -1 +1 @@ -"ooxfoobarybarzobaabb" +"ooxfoobarybarzobaabbc" diff --git a/tests/lang/eval-okay-substring.nix b/tests/lang/eval-okay-substring.nix index 184d72580c..424af00d9b 100644 --- a/tests/lang/eval-okay-substring.nix +++ b/tests/lang/eval-okay-substring.nix @@ -17,3 +17,5 @@ substring 1 2 s + substring 3 0 s + "b" + substring 3 1 s ++ "c" ++ substring 5 10 "perl" |