summaryrefslogtreecommitdiff
path: root/testsuite/misc.pl
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-04-10 01:37:37 +0000
committerAssaf Gordon <assafgordon@gmail.com>2017-05-10 21:34:09 -0400
commit553f9b12faa1e55138d1e06571633c39e68046d6 (patch)
tree424f945d64bf6c42c93388f295c9c0ca2f83c363 /testsuite/misc.pl
parente0669264cdde52bf29240f4f319317b31a2cc9fe (diff)
downloadsed-553f9b12faa1e55138d1e06571633c39e68046d6.tar.gz
tests: convert "xbxcx3" test to new framework
* testsuite/misc.pl (Tests): Add xbxcx3. * testsuite/xbxcx3.good: Delete file. * testsuite/xbxcx3.inp: Likewise. * testsuite/xbxcx3.sed: Likewise. * testsuite/local.mk (EXTRA_DIST): Remove their names. (SEDTESTS): Remove "xbxcx3".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r--testsuite/misc.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl
index ba38bc7..e1d3786 100644
--- a/testsuite/misc.pl
+++ b/testsuite/misc.pl
@@ -139,6 +139,25 @@ y/Ss\nYy/yY$sS/'),
. "xbxcx\n"}
],
+ ['xbxcx3',
+ # Test s///N replacements (GNU extension)
+ qw(-e 's/a*/x/3'),
+ {IN => "\n"
+ . "b\n"
+ . "bc\n"
+ . "bac\n"
+ . "baac\n"
+ . "baaac\n"
+ . "baaaac\n"},
+ {OUT => "\n"
+ . "b\n"
+ . "bcx\n"
+ . "bacx\n"
+ . "baacx\n"
+ . "baaacx\n"
+ . "baaaacx\n"}
+ ],
+
);
my $save_temps = $ENV{SAVE_TEMPS};