diff options
Diffstat (limited to 'tests/sed.test')
-rwxr-xr-x | tests/sed.test | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/sed.test b/tests/sed.test index 154b36a0..a7d5a6eb 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -2,9 +2,6 @@ #testing "name" "command" "result" "infile" "stdin" -# toybox saying "no }" here broke the AOSP build. -testing "Braces" "sed -n '/START/{:a;n;/END/q;p;ba}'" "b\nc\n" "" "a\nSTART\nb\nc\nEND\nd" - testing 'as cat' 'sed ""' "one\ntwo\nthree" "" "one\ntwo\nthree" # This segfaults ubuntu 12.04's sed. No really. SKIP_HOST=1 testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n" @@ -163,4 +160,9 @@ testing "skip start of range" "sed -e n -e '1,2s/b/c/'" "a\nb\n" "" "a\nb\n" testing "bonus backslashes" \ "sed -e 'a \l \x\' -e \"\$(echo -e 'ab\\\nc')\"" \ "hello\nl x\nab\nc\n" "" "hello\n" + +# toybox saying "no }" here broke the AOSP build. +testing "end b with }" "sed -n '/START/{:a;n;/END/q;p;ba}'" "b\nc\n" \ + "" "a\nSTART\nb\nc\nEND\nd" + # -i with $ last line test |