]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/20-good.t
Yet more quotelike tests
[perl/modules/indirect.git] / t / 20-good.t
index 85f1900ddbe8e7133b82a1fab3438c9f749ae643..b3604314816c7afaea73228b56053922d7356e56 100644 (file)
@@ -9,7 +9,7 @@ package main;
 use strict;
 use warnings;
 
-use Test::More tests => 86 * 8;
+use Test::More tests => 101 * 8;
 
 BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
 
@@ -253,17 +253,47 @@ s/foo/return; Hlagh->$meth/e;
 #### # local $_ = "bar";
 s/foo/return; Hlagh->$meth/e;
 #### # local $_ = "foo";
-s/foo/return; $pkg->new/e;
+s/foo/return; $x->new/e;
 #### # local $_ = "bar";
-s/foo/return; $pkg->new/e;
+s/foo/return; $x->new/e;
 #### # local $_ = "foo";
-s/foo/return; $pkg->$cb/e;
+s/foo/return; $x->$cb/e;
 #### # local $_ = "bar";
-s/foo/return; $pkg->$cb/e;
+s/foo/return; $x->$cb/e;
 #### # local $_ = "foo";
-s/foo/return; $pkg->$meth/e;
+s/foo/return; $x->$meth/e;
 #### # local $_ = "bar";
-s/foo/return; $pkg->$meth/e;
+s/foo/return; $x->$meth/e;
+#### # local $_ = "foo";
+s/foo/return; $y->new/e;
+#### # local $_ = "bar";
+s/foo/return; $y->new/e;
+#### # local $_ = "foo";
+s/foo/return; $y->$cb/e;
+#### # local $_ = "bar";
+s/foo/return; $y->$cb/e;
+#### # local $_ = "foo";
+s/foo/return; $y->$meth/e;
+#### # local $_ = "bar";
+s/foo/return; $y->$meth/e;
+####
+"foo" =~ /(?{Hlagh->new})/;
+####
+"foo" =~ /(?{Hlagh->$cb})/;
+####
+"foo" =~ /(?{Hlagh->$meth})/;
+####
+"foo" =~ /(?{$x->new})/;
+####
+"foo" =~ /(?{$x->$cb})/;
+####
+"foo" =~ /(?{$x->$meth})/;
+####
+"foo" =~ /(?{$y->new})/;
+####
+"foo" =~ /(?{$y->$cb})/;
+####
+"foo" =~ /(?{$y->$meth})/;
 ####
 exec $x $x, @a;
 ####