canonical repository moved to https://github.com/Perl-Toolchain-Gang/Module-Metadata
[p5sagit/Module-Metadata.git] / t / version.t
CommitLineData
398fe5a2 1use strict;
eed8b6fa 2use warnings;
398fe5a2 3use Test::More;
4use Module::Metadata;
d57f5df5 5use lib "t/lib/0_2";
398fe5a2 6
7plan tests => 4;
8
9require Foo;
10is $Foo::VERSION, 0.2;
11
d57f5df5 12my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] );
398fe5a2 13is $meta->version, 0.1;
14
15is $Foo::VERSION, 0.2;
16
17ok eval "use Foo 0.2; 1";
18
19
20
21
22
23