tests: convert "0range" test to new framework

* testsuite/misc.pl (Tests): Add 0range.
* testsuite/0range.good: Delete file.
* testsuite/0range.inp: Likewise.
* testsuite/0range.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "0range".
This commit is contained in:
Assaf Gordon committed 2017-05-10 21:37:18 -04:00
1 parent 670914a384
commit e925d8a5bd
5 files changed
+14 -12

No files matched your search

-1
View File
@@ -1 +0,0 @@
yes
-6
View File
@@ -1,6 +0,0 @@
1
2
3
4
aaa
yes
-1
View File
@@ -1 +0,0 @@
0,/aaa/d
+1 -4
View File
@@ -110,7 +110,7 @@ SEDTESTS += testsuite/appquit 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/0range testsuite/bkslashes \
testsuite/numsub5 testsuite/bkslashes \
testsuite/madding testsuite/mac-mf \
testsuite/xemacs \
testsuite/fasts testsuite/uniq testsuite/manis \
@@ -189,9 +189,6 @@ EXTRA_DIST += \
testsuite/envvar-check \
testsuite/PCRE.tests testsuite/BOOST.tests testsuite/SPENCER.tests \
testsuite/runtest testsuite/Makefile.tests \
testsuite/0range.good \
testsuite/0range.inp \
testsuite/0range.sed \
testsuite/8bit.good \
testsuite/8bit.inp \
testsuite/8bit.sed \
+13
View File
@@ -104,6 +104,19 @@ y/Ss\nYy/yY$sS/'),
{OUT=> ">abb<||>abbbb<\n" },
],
['0range',
# Test address 0 (GNU extension)
# FIXME: This test does NOT actually fail if the address is changed to 1.
qw(-e '0,/aaa/d'),
{IN => "1\n"
. "2\n"
. "3\n"
. "4\n"
. "aaa\n"
. "yes\n"},
{OUT => "yes\n"}
],
['dollar',
# Test replacement on the last line (address '$')
qw(-e '$s/^/space /'),