Skip to content

Commit

Permalink
explicit tests for Package:: lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 4, 2012
1 parent 73407b7 commit d70ee4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions S02-packages/package-lookup.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use v6;
use Test;

plan 3;

# L<S02/Package lookup/>

class A {
our sub foo() { 'I am foo' };
}

isa_ok A::, Stash, 'Typename:: is a Stash';
ok A::<&foo>, 'can access a subroutine in the stash';
ok A:: === A.WHO, 'A:: returns the same as A.WHO';

0 comments on commit d70ee4c

Please sign in to comment.