X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fif.t;h=61cc4b2630a2786af1f5b6097afc9e121dbdecf1;hb=2c227d667bcf910e7fef2feea02fec7046f3cb13;hp=3e75718afe29b5c70de37557a965371a61e42a8f;hpb=66d45871e1487a8e2f3c33194cb92dac6f438ba2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/if.t b/lib/if.t index 3e75718..61cc4b2 100644 --- a/lib/if.t +++ b/lib/if.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -use Test::More tests => 5; +use Test::More tests => 6; my $v_plus = $] + 1; my $v_minus = $] - 1; @@ -27,3 +27,5 @@ ok( (not defined eval "use if ($v_plus > \$]), strict => 'refs'; \${'f'} = 12" ok( eval "use if 1, Cwd; cwd() || 1;", '"use if" with a true condition, module, no arguments, exports'); +ok( eval "use if qw/ 1 if 1 strict subs /; \${'f'} = 12" eq 12, + '"use if" with a module named after keyword');