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