Skip to content

Commit

Permalink
test for "require PATH"
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Apr 14, 2013
1 parent 81449cb commit c464098
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions S11-modules/require.t
@@ -1,9 +1,12 @@
use v6;
use Test;

plan 6;
plan 8;
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';

# no need to do that compile time, sine require() really is run time
# no need to do that at compile time, sine require() really is run time
@*INC.push: 't/spec/packages';

# Next line is for final test.
Expand Down

0 comments on commit c464098

Please sign in to comment.