summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-04-10 01:43:30 +0000
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 21:37:18 -0400
commite925d8a5bd5dfc3b32e1a259bfadcf89199794b0 (patch)
tree954b2d814edcd519778de71b4e564bb918eaf636 /testsuite/misc.pl
parent670914a384bb441087d980a1ecaed14d421a5432 (diff)
downloadsed-e925d8a5bd5dfc3b32e1a259bfadcf89199794b0.tar.gz
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".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r--testsuite/misc.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl
index 057028e..0bede64 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -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 /'),