diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2017-04-10 02:24:56 +0000 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2017-05-10 21:37:18 -0400 |
commit | a5be8cb23cd50c15b9b8639ec893c2b932f3c063 (patch) | |
tree | 89756be9bd184d561be7d5f542de13dab4c70707 /testsuite/misc.pl | |
parent | 9c19138f894855371393f4dcc1d6960d93316518 (diff) | |
download | sed-a5be8cb23cd50c15b9b8639ec893c2b932f3c063.tar.gz |
tests: convert "amp-escape" test to new framework
* testsuite/misc.pl (Tests): Add amp-escape.
* testsuite/amp-escape.good: Delete file.
* testsuite/amp-escape.inp: Likewise.
* testsuite/amp-escape.sed: Likewise.
* testsuite/local.mk (EXTRA_DIST): Remove their names.
(SEDTESTS): Remove "amp-escape".
Diffstat (limited to 'testsuite/misc.pl')
-rw-r--r-- | testsuite/misc.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/misc.pl b/testsuite/misc.pl index 180f904..733a82f 100644 --- a/testsuite/misc.pl +++ b/testsuite/misc.pl @@ -117,6 +117,14 @@ y/Ss\nYy/yY$sS/'), {OUT => "yes\n"} ], + ['amp-escape', + # Test ampersand as escape sequence (ASCII 0x26), which should + # not have a special meaning (i.e. the 'matched pattern') + qw(-e 's/yes/yes\x26/'), + {IN => "yes\n"}, + {OUT => "yes&\n"} + ], + ['appquit', # Test 'a'ppend command before 'q'uit qw(-f), |