Blame SOURCES/perl-5.27.1-add-an-additional-test-for-whitespace-tolerance-in-c.patch

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