diff options
author | 2013-03-25 20:06:16 +0000 | |
---|---|---|
committer | 2013-03-25 20:06:16 +0000 | |
commit | 898184e3e61f9129feb5978fad5a8c6865f00b92 (patch) | |
tree | 56f32aefc1eed60b534611007c7856f82697a205 /gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t | |
parent | PGSHIFT -> PAGE_SHIFT (diff) | |
download | wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.tar.xz wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.zip |
import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myself
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 | 22 |
1 files changed, 22 insertions, 0 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 new file mode 100644 index 00000000000..061a0631775 --- /dev/null +++ b/gnu/usr.bin/perl/cpan/Module-Metadata/t/version.t @@ -0,0 +1,22 @@ +use strict; +use Test::More; +use Module::Metadata; +use lib "t/lib/0_2"; + +plan tests => 4; + +require Foo; +is $Foo::VERSION, 0.2; + +my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] ); +is $meta->version, 0.1; + +is $Foo::VERSION, 0.2; + +ok eval "use Foo 0.2; 1"; + + + + + + |