X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F30-scope.t;h=0c5d9700082f96be8aaeacf0b8cdeb5ae96ebf64;hp=f2a785f38b2d1830c6c5eca061100ade95e919c5;hb=2fd739d444ad9514976df16be506b4bfd5610dee;hpb=73065691a24f100af6f7fd8055ccca40772f42b2 diff --git a/t/30-scope.t b/t/30-scope.t index f2a785f..0c5d970 100644 --- a/t/30-scope.t +++ b/t/30-scope.t @@ -6,7 +6,7 @@ use warnings; my $tests; BEGIN { $tests = 8 } -use Test::More tests => $tests + 1; +use Test::More tests => $tests + 2; my %wrong = map { $_ => 1 } 2, 3, 5, 7; @@ -16,6 +16,7 @@ my %wrong = map { $_ => 1 } 2, 3, 5, 7; { local $SIG{__WARN__} = sub { push @warns, join '', 'warn:', @_ }; eval "die qq{ok\\n}; $code"; + is($@, "ok\n", 'DATA compiled fine'); } my $left = 0; my %res = map {