Skip to content

Commit 4458e5c

Browse files
author
John Peacock
committed
A couple more tests to make sure the captures work
1 parent d484783 commit 4458e5c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/04strict_lax.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ SKIP: {
1515
is ref($version::STRICT), 'Regexp', 'Can see $version::STRICT '.$version::STRICT;
1616
{ # https://rt.cpan.org/Ticket/Display.html?id=114712
1717
my ($v) = ( "snapshot-1.2.3ga-001-432" =~ /($version::LAX)/ );
18-
is $v, '1.2.3', 'Extract just the version';
18+
is $v, '1.2.3', "Extract just the version: $v";
19+
($v) = ( "snapshot-1.2ga-001-432" =~ /($version::LAX)/ );
20+
is $v, '1.2', "Extract just the version: $v";
21+
($v) = ( "snapshot-v1.2.3ga-001-432" =~ /($version::STRICT)/ );
22+
is $v, 'v1.2.3', "Extract just the version: $v";
1923
}
2024
}
2125

0 commit comments

Comments
 (0)