summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-02-02 16:25:23 +0000
committerNicholas Clark <nick@ccl4.org>2007-02-02 16:25:23 +0000
commit52e3301553fd75a357b90153aa727915aa35751e (patch)
tree227171b85bb0cfeedd725cdae914e3e014ccdcd5 /t
parent610460f93dd5a2665c479dc22acb80489faf9ce7 (diff)
downloadperl-52e3301553fd75a357b90153aa727915aa35751e.tar.gz
Testing every pattern by also upgrading to UTF-8 would have caught the
bug added by change 29502, fixed in change 30092. p4raw-id: //depot/perl@30093
Diffstat (limited to 't')
-rwxr-xr-xt/op/regexp.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/regexp.t b/t/op/regexp.t
index 1b5ac5b090..919a23938c 100755
--- a/t/op/regexp.t
+++ b/t/op/regexp.t
@@ -97,7 +97,11 @@ foreach (@tests) {
$reason = 'skipping $&' if $reason eq '' && $skip_amp;
$result =~ s/B//i unless $skip;
- for my $study ('', 'study $subject') {
+ for my $study ('', 'study $subject', 'utf8::upgrade($subject)',
+ 'utf8::upgrade($subject); study $subject') {
+ # Need to make a copy, else the utf8::upgrade of an alreay studied
+ # scalar confuses things.
+ my $subject = $subject;
my $c = $iters;
my ($code, $match, $got);
if ($repl eq 'pos') {