Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.62 kB
#!/usr/bin/env perl
use strict;
use warnings;
use English qw( -no_match_vars );
use Test::More;
use lib qw(lib);
use App::perlbrew;
my @test_cases = (
{
raw => q{5.008008},
parsed => q{5.8.8},
},
{
raw => q{5.010001},
parsed => q{5.10.1},
},
{
raw => q{5.012002},
parsed => q{5.12.2},
},
);
plan tests => scalar @test_cases;
{
my $app = App::perlbrew->new();
TEST:
foreach my $test (@test_cases) {
is( $app->format_perl_version( $test->{raw} ),
$test->{parsed}, "$test->{raw} -> $test->{parsed}" );
}
}
Jump to Line
Something went wrong with that request. Please try again.