diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-02-27 10:50:46 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-06-11 15:03:46 +0200 |
commit | 1a01716a33e6e32e48b6631819e8f1c4bee8d0bd (patch) | |
tree | f4890e19d88c925a4d235cbe1183d12e52bb6522 /t | |
parent | a20e6aaed858bacbfb2592e4d1ac5c0d3983de0c (diff) | |
download | perl-1a01716a33e6e32e48b6631819e8f1c4bee8d0bd.tar.gz |
Test that C<format ::Foo> is identical to C<format Foo>
This wasn't being explicitly tested.
Diffstat (limited to 't')
-rw-r--r-- | t/comp/parser.t | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/t/comp/parser.t b/t/comp/parser.t index 6002b3acf7..fa11de95f7 100644 --- a/t/comp/parser.t +++ b/t/comp/parser.t @@ -3,7 +3,7 @@ # Checks if the parser behaves correctly in edge cases # (including weird syntax errors) -print "1..155\n"; +print "1..156\n"; sub failed { my ($got, $expected, $name) = @_; @@ -462,6 +462,16 @@ $test write(); } +$test++; +format ::two = +ok @<< - format ::foo still works +$test +. +{ + local $~ = "two"; + write(); +} + # Add new tests HERE (above this line) # bug #74022: Loop on characters in \p{OtherIDContinue} |