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".
This commit is contained in:
1 parent
a5be8cb23c
commit
b4a5e6e968
5 files changed
+13
-10
No files matched your search
@@ -1,2 +0,0 @@
|
||||
a\
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
a
|
||||
@@ -1,3 +0,0 @@
|
||||
# bug in sed 4.0b
|
||||
s/$/\\\
|
||||
/
|
||||
+1
-4
@@ -110,7 +110,7 @@ SEDTESTS += testsuite/enable testsuite/sep \
|
||||
testsuite/inclib testsuite/8bit testsuite/newjis \
|
||||
testsuite/noeolw testsuite/modulo testsuite/numsub \
|
||||
testsuite/numsub2 testsuite/numsub3 testsuite/numsub4 \
|
||||
testsuite/numsub5 testsuite/bkslashes \
|
||||
testsuite/numsub5 \
|
||||
testsuite/madding testsuite/mac-mf \
|
||||
testsuite/xemacs \
|
||||
testsuite/fasts testsuite/uniq testsuite/manis \
|
||||
@@ -200,9 +200,6 @@ EXTRA_DIST += \
|
||||
testsuite/binary.sed \
|
||||
testsuite/binary2.sed \
|
||||
testsuite/binary3.sed \
|
||||
testsuite/bkslashes.good \
|
||||
testsuite/bkslashes.inp \
|
||||
testsuite/bkslashes.sed \
|
||||
testsuite/brackets.good \
|
||||
testsuite/brackets.inp \
|
||||
testsuite/brackets.sed \
|
||||
|
||||
@@ -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 /'),
|
||||
|
||||
Reference in new issue
Block a user