CPAN-Meta
view release on metacpan or search on metacpan
t/converter-fragments.t view on Meta::CPAN
},
build_requires => {
'Scalar::Util' => '1.0',
},
requires => {
'B' => '3.1',
},
recommends => {
'Config' => '4.0',
},
conflicts => {
'File::Temp' => "0.2",
},
},
expect => {
'meta-spec' => $spec2,
prereqs => {
configure => {
requires => {
'File::Spec' => "0.80",
},
},
build => {
requires => {
'Scalar::Util' => '1.0',
},
},
runtime => {
conflicts => {
'File::Temp' => "0.2",
},
requires => {
'B' => '3.1',
},
recommends => {
'Config' => '4.0',
},
},
},
},
},
{
label => "v1.1 license_url: -> v2 license",
from => "1.1",
to => "2",
input => {
license_url => 'http://opensource.org/licenses/Artistic-1.0',
license => 'perl',
},
expect => {
'meta-spec' => $spec2,
license => [ 'perl_5' ],
},
},
);
for my $c (@cases) {
my $cmc = CPAN::Meta::Converter->new(
$c->{input}, $c->{from} ? (default_version => $c->{from} ) : ()
);
my $got = $cmc->upgrade_fragment;
my $exp = $c->{expect};
is_deeply( $got, $exp, $c->{label} )
or diag "GOT:\n", explain($got), "EXPECTED:\n", explain($exp);
}
done_testing;
# vim: ts=8 sts=4 sw=4 et :
( run in 1.061 second using v1.01-cache-2.11-cpan-364913b4093 )