Skip to content

Commit

Permalink
[require.t] fudge a test that never passed
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 19, 2010
1 parent 26c1e24 commit 0fed615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S11-modules/require.t
Expand Up @@ -6,11 +6,12 @@ plan 3;
# no need to do that compile time, sine require() really is run time
@*INC.push: 't/spec/packages';

lives_ok { require Fancy::Utilities; CATCH { diag $! } },
lives_ok { require Fancy::Utilities; },
'can load Fancy::Utilities at run time';
is Fancy::Utilities::lolgreet('me'),
'O HAI ME', 'can call our-sub from required module';

#?rakudo todo 'write a simpler test'
lives_ok { my $name = 'A'; require $name }, 'can require with variable name';

# vim: ft=perl6

0 comments on commit 0fed615

Please sign in to comment.