diff options
Diffstat (limited to 't/pm/Version.pl')
-rw-r--r-- | t/pm/Version.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/pm/Version.pl b/t/pm/Version.pl index 3177c0361..e4372fffb 100644 --- a/t/pm/Version.pl +++ b/t/pm/Version.pl @@ -65,6 +65,21 @@ sub test_bad_versions } } +sub test_bad_declarations +{ + eval { Automake::Version::check ('', '1.2.3') }; + + warn $@ if $@; + $failed = 1 unless $@; + + $@ = ''; + + eval { Automake::Version::check ('1.2.3', '') }; + + warn $@ if $@; + $failed = 1 unless $@; +} + my @tests = ( # basics ['1.0', '2.0', -1], |