Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add links to synopsis
  • Loading branch information
FROGGS committed Apr 14, 2013
1 parent c464098 commit acf18c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions S11-modules/require.t
Expand Up @@ -2,6 +2,9 @@ use v6;
use Test;

plan 8;

# L<S11/"Runtime Importation"/"Alternately, a filename may be mentioned directly">

lives_ok { require "t/spec/S11-modules/InnerModule.pm"; },
'can load InnerModule.pm from a path at run time';
is GLOBAL::InnerModule::EXPORT::DEFAULT::<&bar>(), 'Inner::bar', 'can call our-sub from required module';
Expand All @@ -27,6 +30,8 @@ lives_ok { my $name = 'A'; require $name }, 'can require with variable name';
'can call subroutines in a module by name';
}

# L<S11/"Runtime Importation"/"Importing via require also installs names into the current lexical scope">

#?pugs skip 'NYI'
{
require Fancy::Utilities <&allgreet>;
Expand Down

0 comments on commit acf18c7

Please sign in to comment.