diff options
author | Rob Landley <rob@landley.net> | 2016-10-17 23:52:51 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-10-17 23:52:51 -0500 |
commit | 64cbbab181749f85f3bcdb8576c5d530c453db84 (patch) | |
tree | 18ec144ccec88fc2b5d289998f8ed2d3b4de7253 /tests | |
parent | b2574799d14e45ad1b43e8dfd1099fd8cf9b5420 (diff) | |
download | toybox-64cbbab181749f85f3bcdb8576c5d530c453db84.tar.gz |
A few more sed tests.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sed.test | 3 |
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 |