From: Vincent Pit Date: Sun, 19 Oct 2008 23:11:08 +0000 (+0200) Subject: Test $$ as object X-Git-Tag: v0.08~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=aac0ea8cc9209c97ac63df35a99f4afc30388d2b;p=perl%2Fmodules%2Findirect.git Test $$ as object --- diff --git a/t/20-bad.t b/t/20-bad.t index 6706d89..01f6a28 100644 --- a/t/20-bad.t +++ b/t/20-bad.t @@ -9,14 +9,14 @@ package main; use strict; use warnings; -use Test::More tests => 44 * 6 + 2; +use Test::More tests => 46 * 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|\$(?:[xy_]|(?:sploosh::)?sploosh|(?:main::)?bloop))"/ + return qr/^warn:Indirect call of method "(?:new|meh|$pkg$pkg)" on object "(?:$pkg|newnew|\$(?:[xy_\$]|(?:sploosh::)?sploosh|(?:main::)?bloop))"/ } { @@ -133,6 +133,10 @@ meh $_; #### meh $_ 1, 2; #### +meh $$; +#### +meh $$ 1, 2; +#### meh $x; #### meh $x 1, 2;