summaryrefslogtreecommitdiff
path: root/t/07-semantic.t
blob: def6becf1b76fdc926414e7ec47c6b546c55854f (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
#!/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 $package = 'semanticDZT';
my $module  = "$package.pm";
my $tzil    = Builder->from_config( { dist_root => "corpus/$package" } );
$tzil->build;
version_ok( path( $tzil->tempdir )->child("build/lib/$module") );
my $lib_0 = $tzil->slurp_file("build/lib/$module");

# e short for expected files
# -------------------------------------------------------------------
my $elib_0 = <<"END LIB0";
package $package;
use warnings;
use strict;
use version;
our \$VERSION = 'v0.0.1'; # VERSION
# ABSTRACT: my abstract
1;
END LIB0

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

is( $lib_0, $elib_0, "check $module" );
done_testing;