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 23