From 0c558f09d9d714244847b0473f7ecda6b12c2ab4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 15 Nov 2014 16:16:29 -0600 Subject: Debugging pass on sed: make the existing test suite pass. --- tests/sed.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/sed.test') diff --git a/tests/sed.test b/tests/sed.test index 7ac5e887..2d019eb9 100644 --- a/tests/sed.test +++ b/tests/sed.test @@ -76,9 +76,11 @@ testing 'sed \1 p no newline' "sed 's/t\\(w\\)o/za\\1py/p'" \ testing 'sed -n s//\1/p' "sed -n 's/t\\(w\\)o/za\\1py/p'" "zawpy" "" "one\ntwo" testing 'sed -n s//\1/p no newline' "sed -n 's/t\\(w\\)o/za\\1py/p'" "zawpy" \ "" "one\ntwo" -testing 'sed backref error' "sed 's/w/ale \2 ha/' 2>/dev/null || echo no" \ +testing 'sed backref error' \ + "sed 's/w/ale \2 ha/' >/dev/null 2>/dev/null || echo no" \ "no\n" "" "one\ntwo\nthree" testing 'sed empty match after nonempty match' "sed -e 's/a*/c/g'" 'cbcncgc' \ '' 'baaang' testing 'sed empty match' "sed -e 's/[^ac]*/A/g'" 'AaAcA' '' 'abcde' - +testing 'sed s///#' "sed -e 's/TWO/four/i#comment'" "one\nfour\nthree" \ + "" "one\ntwo\nthree" -- cgit v1.2.3