summaryrefslogtreecommitdiff
path: root/cpan/Module-Metadata/t/version.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Module-Metadata/t/version.t')
-rw-r--r--cpan/Module-Metadata/t/version.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpan/Module-Metadata/t/version.t b/cpan/Module-Metadata/t/version.t
index e523f97a0f..f97a19d1cb 100644
--- a/cpan/Module-Metadata/t/version.t
+++ b/cpan/Module-Metadata/t/version.t
@@ -7,14 +7,15 @@ use lib "t/lib/0_2";
plan tests => 4;
require Foo;
-is $Foo::VERSION, 0.2;
+is($Foo::VERSION, 0.2, 'affirmed version of loaded module');
my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] );
-is $meta->version, 0.1;
+is($meta->version, 0.1, 'extracted proper version from scanned module');
-is $Foo::VERSION, 0.2;
+is($Foo::VERSION, 0.2, 'loaded module still retains its version');
-ok eval "use Foo 0.2; 1";
+ok(eval "use Foo 0.2; 1", 'successfully loaded module again')
+ or diag 'got exception: ', $@;