summaryrefslogtreecommitdiff
path: root/t/06-overwrite.t
blob: 62847fe5663834e7dbf94563646f8a757483a789 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/perl
use strict;
use warnings;
use Test::More;
use Test::DZil;
use Test::Version qw( version_ok );
use Path::Tiny qw( path );

my $tzil = Builder->from_config({ dist_root => 'corpus/oDZT' });

$tzil->build;

version_ok( path($tzil->tempdir)->child('build/lib/oDZT.pm'));

my $lib_0 = $tzil->slurp_file('build/lib/oDZT.pm');

# e short for expected files
# -------------------------------------------------------------------

my $elib_0 = <<'END LIB8';
use strict;
use warnings;
package oDZT;
# ABSTRACT: lots of false leads here
<<END
# VERSION
END

=pod

# VERSION

=cut

our $VERSION = 'v0.1.0'; # VERSION

BEGIN { our $VERSION= 'v0.1.0'; } # VERSION

our $FOO = 1; our $VERSION='v0.1.0'; our $BAR = 2; # VERSION

1;
__END__

# VERSION
END LIB8

# -------------------------------------------------------------------

is ( $lib_0, $elib_0, 'check oDZT.pm' );

done_testing;