Permalink
Browse files

explicit tests for Package:: lookup

  • Loading branch information...
1 parent 73407b7 commit d70ee4c3b920e4bb215ce4c442927627177173dc @moritz moritz committed May 4, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 S02-packages/package-lookup.t
@@ -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.