summaryrefslogtreecommitdiff
path: root/ext/re
diff options
context:
space:
mode:
Diffstat (limited to 'ext/re')
-rw-r--r--ext/re/t/re_funcs_u.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/re/t/re_funcs_u.t b/ext/re/t/re_funcs_u.t
index 57d7281acf..3eec2894d0 100644
--- a/ext/re/t/re_funcs_u.t
+++ b/ext/re/t/re_funcs_u.t
@@ -41,7 +41,7 @@ if ('1234'=~/(?:(?<A>\d)|(?<C>!))(?<B>\d)(?<A>\d)(?<B>\d)/){
@names = sort +regnames(0);
is("@names","A B","regnames");
my $names = regnames();
- is($names, "B", "regnames in scalar context");
+ ok(($names eq "B" || $names eq "A"), "regnames in scalar context");
@names = sort +regnames(1);
is("@names","A B C","regnames");
is(join("", @{regname("A",1)}),"13");