File: apache_2_0.t

package info (click to toggle)
libsoftware-license-perl 0.104006-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 732 kB
  • sloc: perl: 6,913; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!perl
use strict;
use warnings;
use Test::More tests => 2;

use Software::License::Apache_2_0;


my $software = Software::License::Apache_2_0->new( { holder => "me", year => 2021 } );

my $txt = $software->fulltext;

unlike $txt, qr{yyyy}, "yyyy does not appear in the license content";

like $txt, qr{Copyright 2021 me}, "Copyright [yyyy] is replaced";

done_testing;