summaryrefslogtreecommitdiff
path: root/t/08-build_exceptions.t
blob: c5b27ca0561ea331069a8ecc723a2d3eaca54963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;
use Test::More;
use Test::Exception;
use Test::DZil;

my $package = 'error1';
my $module  = "$package.pm";

dies_ok { Builder->from_config( { dist_root => "corpus/$package" } ) }
'cannot use both underscore_eval_version and semantic_version attributes';

$package = 'error2';
$module  = "$package.pm";

dies_ok { Builder->from_config( { dist_root => "corpus/$package" } ) }
'rejects invalid version number';

done_testing;