Skip to content

Commit

Permalink
bring some small amount of sanity to S10-packages/scope.t
Browse files Browse the repository at this point in the history
still full of mathoms
  • Loading branch information
moritz committed Jul 26, 2012
1 parent bd6dc55 commit 7762601
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions S10-packages/scope.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ plan 23;
# L<S10/Packages/A bare>
{
package Test1 {
sub ns { "Test1" }
sub pkg { $?PACKAGE }
sub test1_export is export { "export yourself!" }
our sub ns { "Test1" }
our sub pkg { $?PACKAGE }
our sub test1_export is export { "export yourself!" }
}
package Test2 {
sub ns { "Test2" }
sub pkg { $?PACKAGE }
our sub ns { "Test2" }
our sub pkg { $?PACKAGE }
our $scalar = 42;
}
package Test3 {
sub pkg { $?PACKAGE }
our sub pkg { $?PACKAGE }
}
}

Expand All @@ -36,7 +36,7 @@ is($?PACKAGE, "Main", 'The Main $?PACKAGE was not broken by any declarations');
# block level
is(Test1::ns, "Test1", "block-level package declarations");
cmp_ok(Test1::pkg, &infix:<===>, ::Test1::, 'block-level $?PACKAGE var');
dies_ok { test1_export() }, "export was not imported implicitly";
dies_ok { eval 'test1_export' }, "export was not imported implicitly";

# declared packages
is(Test2::ns, "Test2", "declared package");
Expand Down

0 comments on commit 7762601

Please sign in to comment.