aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/string.in2
-rw-r--r--tests/string.out1
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/string.in b/tests/string.in
index 1c78e2b3..8afc97ff 100644
--- a/tests/string.in
+++ b/tests/string.in
@@ -55,6 +55,8 @@ string replace -r '(\w+)\s+(\w+)' '$2 $1 $$' 'left right'
string replace -r '\s*newline\s*' '\n' 'put a newline here'
+string replace -r -a '(\w)' '$1$1' ab
+
# test some failure cases
string match -r '[' 'a[sd' 2>/dev/null; or echo "invalid expression error"
diff --git a/tests/string.out b/tests/string.out
index 64b956e3..45ccb369 100644
--- a/tests/string.out
+++ b/tests/string.out
@@ -41,6 +41,7 @@ spaces_to_underscores
right left $
put a
here
+aabb
invalid expression error
invalid argument error
missing argument returns 0