This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c440a57
)
re/pat_advanced.t: Tighten test
author
Karl Williamson
<khw@cpan.org>
Mon, 16 Mar 2015 21:52:18 +0000
(15:52 -0600)
committer
Karl Williamson
<khw@cpan.org>
Wed, 18 Mar 2015 15:44:16 +0000
(09:44 -0600)
This adds anchors to a pattern. I discovered while changing things that
it still passed when broken
t/re/pat_advanced.t
patch
|
blob
|
blame
|
history
diff --git
a/t/re/pat_advanced.t
b/t/re/pat_advanced.t
index
fa324fd
..
3eaad63
100644
(file)
--- a/
t/re/pat_advanced.t
+++ b/
t/re/pat_advanced.t
@@
-995,7
+995,7
@@
sub run_tests {
#
my $w;
local $SIG {__WARN__} = sub {$w .= "@_"};
- $result = eval 'q(WARN) =~ /
[\N{WARN}]
/';
+ $result = eval 'q(WARN) =~ /
^[\N{WARN}]$
/';
ok !$@ && $result && ! $w, '\N{} returning multi-char works';
undef $w;