summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-04-10 02:32:30 +0000
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 21:37:18 -0400
commitb4a5e6e9686e360b420cebe20a083a2fef354ef6 (patch)
tree52d6270dbfb6c4bf952165ae82768c21cdca55b9 /testsuite/misc.pl
parenta5be8cb23cd50c15b9b8639ec893c2b932f3c063 (diff)
downloadsed-b4a5e6e9686e360b420cebe20a083a2fef354ef6.tar.gz
tests: convert "bkslashes" test to new framework
* testsuite/misc.pl (Tests): Add bkslashes. * testsuite/bkslashes.good: Delete file. * testsuite/bkslashes.inp: Likewise. * testsuite/bkslashes.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "bkslashes".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r--testsuite/misc.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl
index 733a82f..7b88abf 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -136,6 +136,18 @@ q)},
. "ok\n"}
],
+ ['bkslashes',
+ # Test backslashes in regex
+ # bug in sed 4.0b
+ qw(-f),
+ {IN => q(s/$/\\\\\
+/
+)},
+ {IN => "a\n"},
+ {OUT => "a\\\n"
+ . "\n"}
+ ],
+
['dollar',
# Test replacement on the last line (address '$')
qw(-e '$s/^/space /'),