This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add test related to change #17799:
authorSteffen Müller <0mgwtfbbq@sneakemail.com>
Thu, 29 Aug 2002 19:39:58 +0000 (21:39 +0200)
committerhv <hv@crypt.org>
Fri, 30 Aug 2002 13:16:05 +0000 (13:16 +0000)
Subject: Re: if.pm bug.
From: "Steffen Mueller" <kjx9zthh3001@sneakemail.com>
Message-ID: <20020829173358.34731.qmail@onion.perl.org>
p4raw-link: @17799 on //depot/perl: a3e5cfd4c30bff9d1d50fd3f8db258b33693d62c

p4raw-id: //depot/perl@17818

lib/if.t

index 12ad0b0..3e75718 100644 (file)
--- 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');
+