This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Carp/t/arg_string.t: fixup to previous fixup
authorDavid Mitchell <davem@iabyn.com>
Thu, 27 Oct 2016 08:29:33 +0000 (09:29 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 27 Oct 2016 08:32:48 +0000 (09:32 +0100)
I added alternates to a regex for matching a f/p number, but forgot
to put parentheses around them. So it was being ridiculously over-liberal

dist/Carp/t/arg_string.t

index 4c754c5..dc70f43 100644 (file)
@@ -26,9 +26,11 @@ like lm(-3), qr/main::lm\(-3\)/;
 like lm(-3.5), qr/main::lm\(-3\.5\)/;
 like lm(-3.5e30),
             qr/main::lm\(
+              (
                 -3500000000000000000000000000000
-              | -3\.5[eE]\+?0?30\)
-            /x;
+              | -3\.5[eE]\+?0?30
+              )
+              \) /x;
 like lm(""), qr/main::lm\(""\)/;
 like lm("foo"), qr/main::lm\("foo"\)/;
 like lm("a\$b\@c\\d\"e"), qr/main::lm\("a\\\$b\\\@c\\\\d\\\"e"\)/;