diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2017-04-10 04:32:06 +0000 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2017-05-10 21:37:21 -0400 |
commit | 53edb359afe31414cc49a197a83f3e3e6676dbac (patch) | |
tree | cdf5a42273233e32a6b68498e7909cb782d3eb46 /testsuite/misc.pl | |
parent | 393733a3142639a8e4c93ea31610722df9e1c659 (diff) | |
download | sed-53edb359afe31414cc49a197a83f3e3e6676dbac.tar.gz |
tests: convert "sep" test to new framework
* testsuite/misc.pl (Tests): Add sep.
* testsuite/sep.good: Delete file.
* testsuite/sep.inp: Likewise.
* testsuite/sep.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "sep".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r-- | testsuite/misc.pl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl index 24258be..e41cb19 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -980,6 +980,22 @@ foo foo fo oo f oo foo foo foo foo foo foo foo foo foo foo foo foo foo ], + ['sep', + # inspired by an autoconf generated configure script. + qw(-f), + {IN => q(s%/[^/][^/]*$%% +s%[\/][^\/][^\/]*$%% +s,.*[^\/],, +)}, + {IN => "miss mary mack mack//mack/ran down/the track track track\n" + . "slashes\aren't%used enough/in/casual-conversation///\n" + . "possibly sentences would be more attractive if they ended" + . "in two slashes//\n"}, + {OUT => "\n" + . "///\n" + . "//\n"} + ], + ['xabcx', # from the ChangeLog (Fri May 21 1993) # Regex address with custom character (\xREGEXx) |