diff options
Diffstat (limited to 'cpan/Module-Metadata/t/version.t')
-rw-r--r-- | cpan/Module-Metadata/t/version.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpan/Module-Metadata/t/version.t b/cpan/Module-Metadata/t/version.t new file mode 100644 index 0000000000..061a063177 --- /dev/null +++ b/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"; + + + + + + |