Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test require and import lists
  • Loading branch information
moritz committed Jun 10, 2012
1 parent 89bcf0b commit 5ba71ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S11-modules/require.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 4;
plan 5;

# no need to do that compile time, sine require() really is run time
@*INC.push: 't/spec/packages';
Expand All @@ -20,4 +20,9 @@ lives_ok { my $name = 'A'; require $name }, 'can require with variable name';
'can call subroutines in a module by name';
}

{
require Fancy::Utilities <&allgreet>;
is allgreet(), 'hi all', 'require with import list';
}

# vim: ft=perl6

0 comments on commit 5ba71ba

Please sign in to comment.