diff options
author | Rob Landley <rob@landley.net> | 2015-12-04 15:18:15 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-12-04 15:18:15 -0600 |
commit | 88d207790e277aa864e6ed114be1c6e59d8ee3f4 (patch) | |
tree | 808a00ae4230ab8f4c6e01cda355fcf87aeb1a68 /tests | |
parent | b057bacd2203b22a60c72672e355a8527932dcf4 (diff) | |
download | toybox-88d207790e277aa864e6ed114be1c6e59d8ee3f4.tar.gz |
Replace duplicate sed test with case we hadn't covered yet.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sed.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/sed.test b/tests/sed.test index 805184e6..8c5bb5d4 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -117,9 +117,10 @@ testing "sed delimiter in regex [char range] doesn't count" "sed -e 's/[/]//'" \ testing "sed delete regex range start line after trigger" \ "sed -e '/one/,/three/{' -e 'i meep' -e '1D;}'" \ "meep\nmeep\ntwo\nmeep\nthree" "" "one\ntwo\nthree" -testing "sed D further processing depends on whether line is blank" \ - "sed -e '/one/,/three/{' -e 'i meep' -e'N;2D;}'" \ - "meep\nmeep\ntwo\nthree\n" "" "one\ntwo\nthree\n" +testing "sed blank pattern repeats last pattern" \ + "sed -e '/^three/s//abc&def/'" \ + "one two three\nabcthreedef four five\nfive six seven\n" "" \ + "one two three\nthree four five\nfive six seven\n" # Different ways of parsing line continuations |