xt/author/test-version.t
raw| 1 | use strict; |
| 2 | use warnings; |
| 3 | use Test::More; |
| 4 | |
| 5 | # generated by Dist::Zilla::Plugin::Test::Version 1.09 |
| 6 | use Test::Version; |
| 7 | |
| 8 | my @imports = qw( version_all_ok ); |
| 9 | |
| 10 | my $params = { |
| 11 | is_strict => 0, |
| 12 | has_version => 1, |
| 13 | multiple => 0, |
| 14 | |
| 15 | }; |
| 16 | |
| 17 | push @imports, $params |
| 18 | if version->parse( $Test::Version::VERSION ) >= version->parse('1.002'); |
| 19 | |
| 20 | Test::Version->import(@imports); |
| 21 | |
| 22 | version_all_ok; |
| 23 | done_testing; |