summaryrefslogtreecommitdiff
path: root/t/base
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2017-06-29 13:20:49 +0200
committerYves Orton <demerphq@gmail.com>2017-06-29 13:20:49 +0200
commit9b7d3fdf8458e3581b4fb3a6c557b4db4e1f31e8 (patch)
tree0d0f1d26d1c99ad00a2edae022e76617b5fbb313 /t/base
parent4f08ed80a1ad3deb06ce5d8d20cc2d176dcbced0 (diff)
downloadperl-9b7d3fdf8458e3581b4fb3a6c557b4db4e1f31e8.tar.gz
add an additional test for whitespace tolerance in caret word-vars
Diffstat (limited to 't/base')
-rw-r--r--t/base/lex.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/base/lex.t b/t/base/lex.t
index 89d46dfce0..de33e7a688 100644
--- a/t/base/lex.t
+++ b/t/base/lex.t
@@ -1,6 +1,6 @@
#!./perl
-print "1..116\n";
+print "1..117\n";
$x = 'x';
@@ -158,9 +158,12 @@ my $test = 31;
${^TEST}= "splat";
@{^TEST}= ("foo", "bar");
%{^TEST}= ("foo" => "FOO", "bar" => "BAR" );
-
+
print "not " if "${^TEST}" ne "splat";
print "ok $test\n"; $test++;
+
+ print "not " if "${ ^TEST }" ne "splat";
+ print "ok $test\n"; $test++;
print "not " if "${^TEST}[0]" ne "splat[0]";
print "ok $test\n"; $test++;