1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!perl
use strict;
use warnings;
use Test::More tests => 3;
# try LGP2 license
my $class = 'Software::LicenseUtils';
require_ok($class);
{
my $license = $class->new_from_short_name({
short_name => 'LGPL-2',
holder => 'X. Ample'
});
like($license->debian_text, qr/common-licenses/i, 'summary found');
}
{
my $license = $class->new_from_short_name({
short_name => 'Expat',
holder => 'X. Ample'
});
like($license->debian_text, qr/substantial/i, 'license text found');
}
|