diff options
Diffstat (limited to 't/08-build_exceptions.t')
-rw-r--r-- | t/08-build_exceptions.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/08-build_exceptions.t b/t/08-build_exceptions.t new file mode 100644 index 0000000..c5b27ca --- /dev/null +++ b/t/08-build_exceptions.t @@ -0,0 +1,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; |