b8c914
From edea384e57453b0a62de58445eed1fded18c1cca Mon Sep 17 00:00:00 2001
b8c914
From: Yves Orton <demerphq@gmail.com>
b8c914
Date: Thu, 29 Jun 2017 13:20:49 +0200
b8c914
Subject: [PATCH] add an additional test for whitespace tolerance in caret
b8c914
 word-vars
b8c914
MIME-Version: 1.0
b8c914
Content-Type: text/plain; charset=UTF-8
b8c914
Content-Transfer-Encoding: 8bit
b8c914
b8c914
Petr Písař: Ported to 5.26.2-RC1.
b8c914
b8c914
Signed-off-by: Petr Písař <ppisar@redhat.com>
b8c914
---
b8c914
 t/base/lex.t | 7 +++++--
b8c914
 1 file changed, 5 insertions(+), 2 deletions(-)
b8c914
b8c914
diff --git a/t/base/lex.t b/t/base/lex.t
b8c914
index ae17bbd..414aa1f 100644
b8c914
--- a/t/base/lex.t
b8c914
+++ b/t/base/lex.t
b8c914
@@ -1,6 +1,6 @@
b8c914
 #!./perl
b8c914
 
b8c914
-print "1..119\n";
b8c914
+print "1..120\n";
b8c914
 
b8c914
 $x = 'x';
b8c914
 
b8c914
@@ -158,9 +158,12 @@ my $test = 31;
b8c914
   ${^TEST}= "splat";
b8c914
   @{^TEST}= ("foo", "bar");
b8c914
   %{^TEST}= ("foo" => "FOO", "bar" => "BAR" );
b8c914
-
b8c914
+  
b8c914
   print "not " if "${^TEST}" ne "splat";
b8c914
   print "ok $test\n"; $test++;
b8c914
+  
b8c914
+  print "not " if "${ ^TEST }" ne "splat";
b8c914
+  print "ok $test\n"; $test++;
b8c914
 
b8c914
   print "not " if "${^TEST}[0]" ne "splat[0]";
b8c914
   print "ok $test\n"; $test++;
b8c914
-- 
b8c914
2.14.3
b8c914