File: debian-text.t

package info (click to toggle)
libsoftware-license-perl 0.103012-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,012 kB
  • ctags: 289
  • sloc: perl: 6,682; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (3)
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');

}