summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-03-08 07:30:42 -0800
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 02:02:28 +0000
commit409ec0b60c0c528ba6d3887ab0cae2e4ce52e220 (patch)
tree0637e401ed85feeb1065f345b7689741fe5173dd /testsuite/misc.pl
parent5bd3258819d61bdfafbfeab6a5cb92b14e96de8f (diff)
downloadsed-409ec0b60c0c528ba6d3887ab0cae2e4ce52e220.tar.gz
tests: convert "insert" test to new framework
* testsuite/misc.pl (Tests): Add insert-nl. * testsuite/insert.good: Delete file. * testsuite/insert.inp: Likewise. * testsuite/insert.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "insert".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r--testsuite/misc.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl
index 99828fe..f036567 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -74,6 +74,11 @@ y/Ss\nYy/yY$sS/'),
{OUT=> "bar bar fo oo f oo bar bar bar bar bar bar bar bar bar\n"},
],
+ ['insert-nl', qw(-f), {IN => "/foo/i\\\n"},
+ {IN => "bar\nfoo\n" },
+ {OUT=> "bar\n\nfoo\n" },
+ ],
+
);
my $save_temps = $ENV{SAVE_TEMPS};