local $package::VERSION should now actually work
[p5sagit/Module-Metadata.git] / t / version.t
CommitLineData
398fe5a2 1use strict;
2use Test::More;
3use Module::Metadata;
4use lib "t/lib/0.2";
5
6plan tests => 4;
7
8require Foo;
9is $Foo::VERSION, 0.2;
10
11my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0.1" ] );
12is $meta->version, 0.1;
13
14is $Foo::VERSION, 0.2;
15
16ok eval "use Foo 0.2; 1";
17
18
19
20
21
22