X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F21-bad.t;h=11da77d29c2fabb2f6dfa1300e1bebf8597b7de7;hp=eea745eb863c64e8301c610f528aeabc740e1549;hb=5d8477b589d7ed4c4571111036e5b237ad13f6a9;hpb=ff16be2f69592b80dfcbc397b37dd4ea070b9d62 diff --git a/t/21-bad.t b/t/21-bad.t index eea745e..11da77d 100644 --- a/t/21-bad.t +++ b/t/21-bad.t @@ -11,8 +11,8 @@ use warnings; my ($tests, $reports); BEGIN { - $tests = 60; - $reports = 68; + $tests = 61; + $reports = 69; } use Test::More tests => 3 * (4 * $tests + $reports) + 2; @@ -42,7 +42,7 @@ sub try { @warns = (); { - local $SIG{__WARN__} = sub { push @warns, join(' ', @_) }; + local $SIG{__WARN__} = sub { push @warns, @_ }; eval $code; } } @@ -129,6 +129,10 @@ $obj = new Hlagh; ---- [ 'new', 'Hlagh' ] #### +$obj = new Hlagh if 0; +---- +[ 'new', 'Hlagh' ] +#### $obj = new Hlagh(); ---- [ 'new', 'Hlagh' ]