Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

explicit tests for Package:: lookup

  • Loading branch information...
commit d70ee4c3b920e4bb215ce4c442927627177173dc 1 parent 73407b7
@moritz moritz authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 S02-packages/package-lookup.t
View
14 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';
Please sign in to comment.
Something went wrong with that request. Please try again.