projects
/
p5sagit/Module-Metadata.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Release commit for 1.000017
[p5sagit/Module-Metadata.git]
/
t
/
version.t
1
use strict;
2
use warnings;
3
use Test::More;
4
use Module::Metadata;
5
use lib "t/lib/0_2";
6
7
plan tests => 4;
8
9
require Foo;
10
is $Foo::VERSION, 0.2;
11
12
my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] );
13
is $meta->version, 0.1;
14
15
is $Foo::VERSION, 0.2;
16
17
ok eval "use Foo 0.2; 1";
18
19
20
21
22
23