Skip to content

Commit 3184f68

Browse files
add test descriptions
1 parent c12a6ad commit 3184f68

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

t/version.t

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ use lib "t/lib/0_2";
77
plan tests => 4;
88

99
require Foo;
10-
is $Foo::VERSION, 0.2;
10+
is($Foo::VERSION, 0.2, 'affirmed version of loaded module');
1111

1212
my $meta = Module::Metadata->new_from_module("Foo", inc => [ "t/lib/0_1" ] );
13-
is $meta->version, 0.1;
13+
is($meta->version, 0.1, 'extracted proper version from scanned module');
1414

15-
is $Foo::VERSION, 0.2;
15+
is($Foo::VERSION, 0.2, 'loaded module still retains its version');
1616

17-
ok eval "use Foo 0.2; 1";
17+
ok(eval "use Foo 0.2; 1", 'successfully loaded module again')
18+
or diag 'got exception: ', $@;
1819

1920

2021

0 commit comments

Comments
 (0)