File: creative_commons.t

package info (click to toggle)
libsoftware-license-perl 0.104007-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 732 kB
  • sloc: perl: 6,931; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!perl

use strict;
use warnings;
use Test::More;
use Software::LicenseUtils;

BEGIN {
  eval "require Software::License::CC_BY_1_0; 1"
  or plan skip_all => "requires Software::License::CCpack to test this";
}

{
  my $license = Software::License::CC_BY_1_0->new({holder => 'DUMMY'})->notice;
  my $pod = "=head1 LICENSE\n\n$license\n=cut\n";
  is_deeply(
    [Software::LicenseUtils->guess_license_from_pod($pod)],
    ['Software::License::CC_BY_1_0'],
  );
}

done_testing;