From: Vincent Pit Date: Fri, 5 Dec 2008 19:19:19 +0000 (+0100) Subject: Test eval block X-Git-Tag: v0.09~3 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=da26cc8e6a433e138ea14c50a48534358db57471;p=perl%2Fmodules%2Findirect.git Test eval block --- diff --git a/t/30-scope.t b/t/30-scope.t index 19e29df..414c9c7 100644 --- a/t/30-scope.t +++ b/t/30-scope.t @@ -4,11 +4,11 @@ use strict; use warnings; my $tests; -BEGIN { $tests = 8 } +BEGIN { $tests = 10 } use Test::More tests => 1 + $tests + 1 + 2; -my %wrong = map { $_ => 1 } 2, 3, 5, 7; +my %wrong = map { $_ => 1 } 2, 3, 5, 7, 9, 10; sub expect { my ($pkg) = @_; @@ -91,3 +91,10 @@ my $g = new P7; use indirect; my $h = new P8; + +{ + no indirect; + eval { my $i = new P9 }; +} + +eval { no indirect; my $j = new P10 };