Skip to content

Commit

Permalink
run more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Oct 30, 2018
1 parent 74189ce commit 101be5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/module-packages.pod6
Expand Up @@ -57,7 +57,7 @@ scoped it is aliased in the module's symbol table. Finally,
C<friendly-greeting> is marked for export; it will be registered in the
I<caller's> symbol table when the module is imported:
=begin code :skip-test<&friendly-greeting already exported>
=begin code :skip-test<can't import>
import M; # import the module
say M::loud-greeting; # OUTPUT: «GREETINGS, CAMELIA!␤»
say friendly-greeting; # OUTPUT: «Greetings, friend!␤»
Expand Down Expand Up @@ -93,7 +93,7 @@ match the module name. Returning to C<Foo.pm6>, it is apparent that
it only provides a single module, C<M>; in this case, we might want
to rename C<M> to C<Foo>. The amended file would then read:
=begin code :skip-test<&friendly-greeting already exported>
=begin code :solo
module Foo {
sub greeting ($name = 'Camelia') { "Greetings, $name!" }
our sub loud-greeting (--> Str) { greeting().uc }
Expand Down Expand Up @@ -145,7 +145,7 @@ omits the declaration. The subroutine definitions below are almost
identical (the only difference is in the body of C<greeting>,
modified for clarity):
=begin code :skip-test<&friendly-greeting already exported>
=begin code :solo
sub greeting ($name = 'Camelia') { "Greetings from Bar, $name!" }
our sub loud-greeting (--> Str) { greeting().uc }
sub friendly-greeting is export { greeting('friend') }
Expand Down

0 comments on commit 101be5a

Please sign in to comment.