diff options
author | 2017-02-05 00:31:51 +0000 | |
---|---|---|
committer | 2017-02-05 00:31:51 +0000 | |
commit | b8851fcc53cbe24fd20b090f26dd149e353f6174 (patch) | |
tree | 4b7c1695865f00ab7a0da30b5632d514848ea3a2 /gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t | |
parent | Add option PCIVERBOSE. (diff) | |
download | wireguard-openbsd-b8851fcc53cbe24fd20b090f26dd149e353f6174.tar.xz wireguard-openbsd-b8851fcc53cbe24fd20b090f26dd149e353f6174.zip |
Fix merge issues, remove excess files - match perl-5.24.1 dist
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t')
-rw-r--r-- | gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t b/gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t index e523f97a0f4..f97a19d1cbb 100644 --- a/gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t +++ b/gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t @@ -7,14 +7,15 @@ use lib "t/lib/0_2"; plan tests => 4; require Foo; -is $Foo::VERSION, 0.2; +is($Foo::VERSION, 0.2, 'affirmed version of loaded module'); my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] ); -is $meta->version, 0.1; +is($meta->version, 0.1, 'extracted proper version from scanned module'); -is $Foo::VERSION, 0.2; +is($Foo::VERSION, 0.2, 'loaded module still retains its version'); -ok eval "use Foo 0.2; 1"; +ok(eval "use Foo 0.2; 1", 'successfully loaded module again') + or diag 'got exception: ', $@; |