aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-12-04 15:18:15 -0600
committerRob Landley <rob@landley.net>2015-12-04 15:18:15 -0600
commit88d207790e277aa864e6ed114be1c6e59d8ee3f4 (patch)
tree808a00ae4230ab8f4c6e01cda355fcf87aeb1a68
parentb057bacd2203b22a60c72672e355a8527932dcf4 (diff)
downloadtoybox-88d207790e277aa864e6ed114be1c6e59d8ee3f4.tar.gz
Replace duplicate sed test with case we hadn't covered yet.
-rwxr-xr-xtests/sed.test7
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