Backport VMS fixes from blead [RT #70781]
[p5sagit/Module-Metadata.git] / t / version.t
CommitLineData
398fe5a2 1use strict;
2use Test::More;
3use Module::Metadata;
d57f5df5 4use lib "t/lib/0_2";
398fe5a2 5
6plan tests => 4;
7
8require Foo;
9is $Foo::VERSION, 0.2;
10
d57f5df5 11my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] );
398fe5a2 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