tests: convert "y-bracket" test to new framework

* testsuite/misc.pl (Tests): Add y-bracket.
* testsuite/y-bracket.good: Delete file.
* testsuite/y-bracket.inp: Likewise.
* testsuite/y-bracket.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "y-bracket".
This commit is contained in:
Jim Meyering authored and Assaf Gordon committed 2017-05-10 02:02:28 +00:00
1 parent a53744ee0d
commit 41da447bbc
5 files changed
+7 -7

No files matched your search

+1 -4
View File
@@ -117,7 +117,7 @@ SEDTESTS += testsuite/appquit testsuite/enable testsuite/sep \
testsuite/recall testsuite/recall2 testsuite/xemacs \
testsuite/fasts testsuite/uniq testsuite/manis \
testsuite/khadafy testsuite/linecnt testsuite/eval \
testsuite/distrib testsuite/8to7 testsuite/y-bracket \
testsuite/distrib testsuite/8to7 \
testsuite/y-newline testsuite/y-zero testsuite/allsub \
testsuite/cv-vars testsuite/classes testsuite/middle \
testsuite/bsd testsuite/stdin testsuite/flipcase \
@@ -357,9 +357,6 @@ EXTRA_DIST += \
testsuite/xemacs.good \
testsuite/xemacs.inp \
testsuite/xemacs.sed \
testsuite/y-bracket.good \
testsuite/y-bracket.sed \
testsuite/y-bracket.inp \
testsuite/y-zero.good \
testsuite/y-zero.sed \
testsuite/y-zero.inp \
+6
View File
@@ -51,6 +51,12 @@ my @Tests =
{IN=> "a\nb" },
{OUT=>"ax\nbx" },
],
['y-bracket', q('y/[/ /'),
{IN => "Are you sure (y/n)? [y]\n" },
{OUT=> "Are you sure (y/n)? y]\n" },
],
);
my $save_temps = $ENV{SAVE_TEMPS};
-1
View File
@@ -1 +0,0 @@
Are you sure (y/n)? y]
-1
View File
@@ -1 +0,0 @@
Are you sure (y/n)? [y]
-1
View File
@@ -1 +0,0 @@
y/[/ /