Skip to content

Commit

Permalink
Test integer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jan 26, 2016
1 parent b7e0c7e commit 221f974
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/dist_version.t
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ subtest 'formatting release version' => sub {
);
};

subtest 'formatting integer version' => sub {
my $mock = bless { remote_file => 'Foo-20160101.tar.gz' }, $class;
my $got = $mock->dist_version;
is( $mock->dist_version, '20160101',
"Single integer version extracts correct number"
);
};

subtest 'formatting three digit minor version' => sub {
my $mock = bless { remote_file => 'Foo-3.045.tar.gz' }, $class;
my $got = $mock->dist_version;
Expand Down

0 comments on commit 221f974

Please sign in to comment.