]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/21-bad.t
More quotelike environments testing
[perl/modules/indirect.git] / t / 21-bad.t
index 09157e98c66d668630eaab0699b58f3e09fee44f..abdd7d3e54f8fe10429a6b285841f91c6f589e4f 100644 (file)
@@ -11,8 +11,8 @@ use warnings;
 
 my ($tests, $reports);
 BEGIN {
- $tests   = 70;
- $reports = 82;
+ $tests   = 76;
+ $reports = 88;
 }
 
 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' ]
+#### # 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 { };
 ----