summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-03-06 21:59:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-03-06 21:59:02 +0000
commit930366bdf79887ad214c728d5d80b0adf3c4181c (patch)
tree2fffd087c57819acee49ba3b12a18ac6292e2fde /t/run
parentff23347e9ef93e40f6bc9f2bc2656893b6259bf4 (diff)
downloadperl-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-xt/run/switch_A.t7
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');