tests: convert "brackets" test to new framework
* testsuite/misc.pl (Tests): Add brackets. * testsuite/brackets.good: Delete file. * testsuite/brackets.inp: Likewise. * testsuite/brackets.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "brackets".
This commit is contained in:
1 parent
53edb359af
commit
34ec11a66b
5 files changed
+18
-14
No files matched your search
@@ -1 +0,0 @@
|
||||
abcdefgh[
|
||||
@@ -1 +0,0 @@
|
||||
[[[[[[[[[
|
||||
@@ -1,8 +0,0 @@
|
||||
s/[[]/a/
|
||||
s/[[[]/b/
|
||||
s/[[[[]/c/
|
||||
s/[[[[[]/d/
|
||||
s/[[[[[[]/e/
|
||||
s/[[[[[[[]/f/
|
||||
s/[[[[[[[[]/g/
|
||||
s/[[[[[[[[[]/h/
|
||||
+1
-4
@@ -117,7 +117,7 @@ SEDTESTS += testsuite/8bit testsuite/newjis \
|
||||
testsuite/subwrite testsuite/writeout \
|
||||
testsuite/utf8-1 \
|
||||
testsuite/utf8-2 testsuite/utf8-3 testsuite/utf8-4 \
|
||||
testsuite/badenc testsuite/inplace-hold testsuite/brackets \
|
||||
testsuite/badenc testsuite/inplace-hold \
|
||||
testsuite/help testsuite/file \
|
||||
testsuite/quiet testsuite/binary3 \
|
||||
testsuite/binary2 testsuite/binary testsuite/dc
|
||||
@@ -195,9 +195,6 @@ EXTRA_DIST += \
|
||||
testsuite/binary.sed \
|
||||
testsuite/binary2.sed \
|
||||
testsuite/binary3.sed \
|
||||
testsuite/brackets.good \
|
||||
testsuite/brackets.inp \
|
||||
testsuite/brackets.sed \
|
||||
testsuite/bsd.good \
|
||||
testsuite/bsd.sh \
|
||||
testsuite/dc.good \
|
||||
|
||||
@@ -136,6 +136,23 @@ q)},
|
||||
. "ok\n"}
|
||||
],
|
||||
|
||||
|
||||
['brackets',
|
||||
qw(-f),
|
||||
{IN => q(s/[[]/a/
|
||||
s/[[[]/b/
|
||||
s/[[[[]/c/
|
||||
s/[[[[[]/d/
|
||||
s/[[[[[[]/e/
|
||||
s/[[[[[[[]/f/
|
||||
s/[[[[[[[[]/g/
|
||||
s/[[[[[[[[[]/h/
|
||||
)},
|
||||
{IN => "[[[[[[[[[\n"},
|
||||
{OUT => "abcdefgh[\n"}
|
||||
],
|
||||
|
||||
|
||||
['bkslashes',
|
||||
# Test backslashes in regex
|
||||
# bug in sed 4.0b
|
||||
|
||||
Reference in new issue
Block a user