summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-04-10 01:30:41 +0000
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 21:33:57 -0400
commitc0a5c5049248bf91f8734231c97da7895c2db3bd (patch)
tree804a217082752c5dc03352a398b6acbf243dd11d /testsuite/misc.pl
parent9785b2ae6b841288a29a878546cfda7df095c3a8 (diff)
downloadsed-c0a5c5049248bf91f8734231c97da7895c2db3bd.tar.gz
tests: convert "xbxcx" test to new framework
* testsuite/misc.pl (Tests): Add xbxcx. * testsuite/xbxcx.good: Delete file. * testsuite/xbxcx.inp: Likewise. * testsuite/xbxcx.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "xbxcx".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r--testsuite/misc.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl
index 63853be..00fcce7 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -103,6 +103,26 @@ y/Ss\nYy/yY$sS/'),
{IN => "ababb||abbbabbbb\n" },
{OUT=> ">abb<||>abbbb<\n" },
],
+
+ ['xbxcx',
+ # from the ChangeLog (Wed Sep 5 2001)
+ qw(-e 's/a*/x/g'),
+ {IN => "\n"
+ . "b\n"
+ . "bc\n"
+ . "bac\n"
+ . "baac\n"
+ . "baaac\n"
+ . "baaaac\n"},
+ {OUT => "x\n"
+ . "xbx\n"
+ . "xbxcx\n"
+ . "xbxcx\n"
+ . "xbxcx\n"
+ . "xbxcx\n"
+ . "xbxcx\n"}
+ ],
+
);
my $save_temps = $ENV{SAVE_TEMPS};