]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Test $$ as object
authorVincent Pit <vince@profvince.com>
Sun, 19 Oct 2008 23:11:08 +0000 (01:11 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 19 Oct 2008 23:11:08 +0000 (01:11 +0200)
t/20-bad.t

index 6706d89c3a706d1a31f5706b47657411d1808741..01f6a283943ae950aef2cbf377fccb4009c2b8bc 100644 (file)
@@ -9,14 +9,14 @@ package main;
 use strict;
 use warnings;
 
 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) = @_;
 
 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 $_ 1, 2;
 ####
+meh $$;
+####
+meh $$ 1, 2;
+####
 meh $x;
 ####
 meh $x 1, 2;
 meh $x;
 ####
 meh $x 1, 2;