summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-03-01 20:58:09 -0800
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 02:02:28 +0000
commit67ac77859970cef3f0eb79328a563481c0e7b397 (patch)
tree0c0647ee72ad0e58000f4747527978afeb356778 /testsuite/misc.pl
parent41da447bbc9b6c4c3821772fec59adf3d358e19e (diff)
downloadsed-67ac77859970cef3f0eb79328a563481c0e7b397.tar.gz
tests: convert "y-zero" test to new framework
* testsuite/misc.pl (Tests): Add y-zero. * testsuite/y-zero.good: Delete file. * testsuite/y-zero.inp: Likewise. * testsuite/y-zero.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "y-zero".
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 622a5d5..282c8c2 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -57,6 +57,11 @@ my @Tests =
{OUT=> "Are you sure (y/n)? y]\n" },
],
+ ['y-zero', q('y/b/\x00/'),
+ {IN => "abc\n" },
+ {OUT=> "a\0c\n" },
+ ],
+
);
my $save_temps = $ENV{SAVE_TEMPS};