File: 08-build_exceptions.t

package info (click to toggle)
libdist-zilla-plugin-ourpkgversion-perl 1%3A0.21-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 738; sh: 4; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (2)
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;