aboutsummaryrefslogtreecommitdiff
path: root/tests/sed.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-10-17 23:52:51 -0500
committerRob Landley <rob@landley.net>2016-10-17 23:52:51 -0500
commit64cbbab181749f85f3bcdb8576c5d530c453db84 (patch)
tree18ec144ccec88fc2b5d289998f8ed2d3b4de7253 /tests/sed.test
parentb2574799d14e45ad1b43e8dfd1099fd8cf9b5420 (diff)
downloadtoybox-64cbbab181749f85f3bcdb8576c5d530c453db84.tar.gz
A few more sed tests.
Diffstat (limited to 'tests/sed.test')
-rwxr-xr-xtests/sed.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sed.test b/tests/sed.test
index f48b73e6..75d6ec5d 100755
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -59,6 +59,9 @@ testing 'regex address overlap' 'sed -n /on/,/off/p' "on\nzap\noffon\n" "" \
'on\nzap\noffon\nping\noff\n'
testing 'getdelim with nested [:blah:]' 'sed -n "sa\a[a[:space:]bc]*aXXagp"' \
"ABXXCDXXEFXXGHXXIXX" "" "ABaaCDa EFaa aGHa a Ia "
+testing '[ in [[]' "sed 's@[[]@X@g'" "X" "" "["
+testing '[[] with ] as delimiter' "sed 's][[]]X]g'" "X" "" "["
+testing '[[] with [ as delimiter' "sed 's[\[\[][X['" "X" "" "["
# gGhHlnNpPqrstwxy:=
# s///#comment