Skip to content

Commit

Permalink
add test for RT #116016 (version literals)
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Oct 11, 2014
1 parent 52de4a2 commit 2e4270c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S02-types/version.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 35;
plan 36;

my sub vtest($cmp, *@v) {
my $x = shift @v;
Expand Down Expand Up @@ -50,5 +50,8 @@ my @sorted = <
vtest Order::Less, @sorted;
vtest Order::More, @sorted.reverse;

# RT #116016
is v12.3.4 cmp Version.new("12.3.4"), Order::Same, 'can parse literal versions where major version is more than one digit';

done;

0 comments on commit 2e4270c

Please sign in to comment.