From: Steffen Müller <0mgwtfbbq@sneakemail.com> Date: Thu, 29 Aug 2002 19:39:58 +0000 (+0200) Subject: add test related to change #17799: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=66d45871e1487a8e2f3c33194cb92dac6f438ba2;p=p5sagit%2Fp5-mst-13.2.git add test related to change #17799: Subject: Re: if.pm bug. From: "Steffen Mueller" Message-ID: <20020829173358.34731.qmail@onion.perl.org> p4raw-link: @17799 on //depot/perl: a3e5cfd4c30bff9d1d50fd3f8db258b33693d62c p4raw-id: //depot/perl@17818 --- diff --git a/lib/if.t b/lib/if.t index 12ad0b0..3e75718 100644 --- a/lib/if.t +++ b/lib/if.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -use Test::More tests => 4; +use Test::More tests => 5; my $v_plus = $] + 1; my $v_minus = $] - 1; @@ -24,3 +24,6 @@ ok( (not defined eval "use if ($v_plus > \$]), strict => 'refs'; \${'f'} = 12" and $@ =~ /while "strict refs" in use/), '"use if" with a true condition and a pragma'); +ok( eval "use if 1, Cwd; cwd() || 1;", + '"use if" with a true condition, module, no arguments, exports'); +