aboutsummaryrefslogtreecommitdiff
path: root/tests/sed.test
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-01-08 15:37:56 -0800
committerElliott Hughes <enh@google.com>2021-01-08 17:36:22 -0800
commit9582c59cdea38e9121f81ed502bc45ddcca49876 (patch)
tree41cd594d66ddd43f29177374f1f7c823297a82ee /tests/sed.test
parent5f4651f63033df044807057792caef48b14efc50 (diff)
parent661130b38cbf74056430e4b280512369dfcd9fe9 (diff)
downloadtoybox-9582c59cdea38e9121f81ed502bc45ddcca49876.tar.gz
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: Id8974b50d3d8640a544b81f7cc99e569371fd214
Diffstat (limited to 'tests/sed.test')
-rwxr-xr-xtests/sed.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sed.test b/tests/sed.test
index beb11d5c..c3928e58 100755
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -185,6 +185,8 @@ testing '\n with empty capture' \
testing '\n too high' \
'sed -E "s/(.*)/\2/p" 2>/dev/null || echo OK' "OK\n" "" "foo"
+toyonly testing 's///x' 'sed "s/(hello )?(world)/\2/x"' "world" "" "hello world"
+
# Performance test
X=x; Y=20; while [ $Y -gt 0 ]; do X=$X$X; Y=$(($Y-1)); done
testing 'megabyte s/x/y/g (20 sec timeout)' \