Skip to content

Commit 6e57f65

Browse files
author
John Peacock
committed
Add a test before fixing bug
1 parent 6877ad6 commit 6e57f65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/04strict_lax.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ SKIP: {
1313
strict_lax_tests();
1414
is ref($version::LAX), 'Regexp', 'Can see $version::LAX '.$version::LAX ;
1515
is ref($version::STRICT), 'Regexp', 'Can see $version::STRICT '.$version::STRICT;
16+
{ # https://rt.cpan.org/Ticket/Display.html?id=114712
17+
my ($v) = ( "snapshot-1.2.3ga-001-432" =~ /($version::LAX)/ );
18+
is $v, '1.2.3', 'Extract just the version';
19+
}
1620
}
1721

1822

0 commit comments

Comments
 (0)