]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
More quotelike environments testing
authorVincent Pit <vince@profvince.com>
Mon, 16 Aug 2010 15:21:17 +0000 (17:21 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 16 Aug 2010 15:21:17 +0000 (17:21 +0200)
t/20-good.t
t/21-bad.t

index 12a4a76bb6b5adcddd4bdceba487f8ced4120cc5..85f1900ddbe8e7133b82a1fab3438c9f749ae643 100644 (file)
@@ -9,7 +9,7 @@ package main;
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use Test::More tests => 74 * 8;
+use Test::More tests => 86 * 8;
 
 BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
 
 
 BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
 
@@ -240,6 +240,30 @@ $obj = "apple @{[$x->$meth]} pear"
 $obj = "apple ${\($y->$meth)} pear"
 ####
 $obj = "apple @{[$y->$meth]} pear"
 $obj = "apple ${\($y->$meth)} pear"
 ####
 $obj = "apple @{[$y->$meth]} pear"
+#### # local $_ = "foo";
+s/foo/return; Hlagh->new/e;
+#### # local $_ = "bar";
+s/foo/return; Hlagh->new/e;
+#### # local $_ = "foo";
+s/foo/return; Hlagh->$cb/e;
+#### # local $_ = "bar";
+s/foo/return; Hlagh->$cb/e;
+#### # local $_ = "foo";
+s/foo/return; Hlagh->$meth/e;
+#### # local $_ = "bar";
+s/foo/return; Hlagh->$meth/e;
+#### # local $_ = "foo";
+s/foo/return; $pkg->new/e;
+#### # local $_ = "bar";
+s/foo/return; $pkg->new/e;
+#### # local $_ = "foo";
+s/foo/return; $pkg->$cb/e;
+#### # local $_ = "bar";
+s/foo/return; $pkg->$cb/e;
+#### # local $_ = "foo";
+s/foo/return; $pkg->$meth/e;
+#### # local $_ = "bar";
+s/foo/return; $pkg->$meth/e;
 ####
 exec $x $x, @a;
 ####
 ####
 exec $x $x, @a;
 ####
index 09157e98c66d668630eaab0699b58f3e09fee44f..abdd7d3e54f8fe10429a6b285841f91c6f589e4f 100644 (file)
@@ -11,8 +11,8 @@ use warnings;
 
 my ($tests, $reports);
 BEGIN {
 
 my ($tests, $reports);
 BEGIN {
- $tests   = 70;
- $reports = 82;
+ $tests   = 76;
+ $reports = 88;
 }
 
 use Test::More tests => 3 * (4 * $tests + $reports) + 4;
 }
 
 use Test::More tests => 3 * (4 * $tests + $reports) + 4;
@@ -402,6 +402,30 @@ $obj = "apple ${\(new $x qq|${\(stuff $y)}|)} pear"
 $obj = "apple @{[new $x qq|@{[stuff $y]}|]} pear"
 ----
 [ 'stuff', '$y' ], [ 'new', '$x' ]
 $obj = "apple @{[new $x qq|@{[stuff $y]}|]} pear"
 ----
 [ 'stuff', '$y' ], [ 'new', '$x' ]
+#### # local $_ = "foo";
+s/foo/return; new Hlagh/e;
+----
+[ 'new', 'Hlagh' ]
+#### # local $_ = "bar";
+s/foo/return; new Hlagh/e;
+----
+[ 'new', 'Hlagh' ]
+#### # local $_ = "foo";
+s/foo/return; new $x/e;
+----
+[ 'new', '$x' ]
+#### # local $_ = "bar";
+s/foo/return; new $x/e;
+----
+[ 'new', '$x' ]
+#### # local $_ = "foo";
+s/foo/return; new $y/e;
+----
+[ 'new', '$y' ]
+#### # local $_ = "bar";
+s/foo/return; new $y/e;
+----
+[ 'new', '$y' ]
 ####
 meh { };
 ----
 ####
 meh { };
 ----