diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-03-06 21:59:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-03-06 21:59:02 +0000 |
commit | 930366bdf79887ad214c728d5d80b0adf3c4181c (patch) | |
tree | 2fffd087c57819acee49ba3b12a18ac6292e2fde /t/run | |
parent | ff23347e9ef93e40f6bc9f2bc2656893b6259bf4 (diff) | |
download | perl-930366bdf79887ad214c728d5d80b0adf3c4181c.tar.gz |
Make the -A switch work without an assertion name.
by Salvador FandiƱo.
p4raw-id: //depot/perl@18843
Diffstat (limited to 't/run')
-rwxr-xr-x | t/run/switch_A.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/run/switch_A.t b/t/run/switch_A.t index e042c1df95..5a71b409a5 100755 --- a/t/run/switch_A.t +++ b/t/run/switch_A.t @@ -7,7 +7,7 @@ BEGIN { } BEGIN { - plan(4); + plan(5); } #1 @@ -29,3 +29,8 @@ fresh_perl_is('sub cm : assertion { "ok" }; use assertions Bye; print cm()', fresh_perl_is('sub cm : assertion { "ok" }; use assertions Hello; print cm()', '0', { switches => ['-ANoH..o'] }, '-ANoH..o'); + +#5 +fresh_perl_is('sub cm : assertion { "ok" }; use assertions Hello; print cm()', + 'ok', + { switches => ['-A'] }, '-A'); |