X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F21-bad.t;h=1d2fab9342529662108d811d04f89aab7b1f52d7;hp=c480d6c0a4720dca3a614caab688f33a6ba5da55;hb=9856d89db33e335664cca6910de72b53e0e12763;hpb=50cf1763d6570e6589e3e809aede60d7e3f1912e diff --git a/t/21-bad.t b/t/21-bad.t index c480d6c..1d2fab9 100644 --- a/t/21-bad.t +++ b/t/21-bad.t @@ -9,14 +9,19 @@ package main; use strict; use warnings; -use Test::More tests => 50 * 6 + 2; +use Test::More tests => 52 * 6 + 2; my ($obj, $x); our ($y, $bloop); sub expect { my ($pkg) = @_; - return qr/^warn:Indirect call of method "(?:new|meh|$pkg$pkg)" on object "(?:$pkg|newnew|\$(?:[xyz_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))"/ + qr/^warn:Indirect\s+call\s+of\s+method\s+ + "(?:new|meh|feh|$pkg$pkg)" + \s+on\s+object\s+ + "(?:$pkg|newnew|feh|\$(?:[xyz_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))" + \s+at\s+\(eval\s+\d+\)\s+line\s+\d+ + /x } { @@ -191,6 +196,10 @@ $obj = new newnew; #### $obj = new newnew; # new newnew #### +$obj = feh feh; +#### +$obj = feh feh; # feh feh +#### new Hlagh (meh $x) #### Hlagh->new(meh $x)