Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix up traits and importing tests

  • Loading branch information...
commit 17368d04f01812ca131f383079ec141435056fa6 1 parent 95257ca
@moritz moritz authored
View
1  S11-modules/importing.t
@@ -25,7 +25,6 @@ plan 15;
is( waz(), 'Foo::waz', 'Foo::waz is the sub we expect' );
is( waz(1), 'Foo::wazhere', 'Foo::waz imported does not wipe out our other waz multis' );
- #?rakudo 2 todo 'importing stuff'
dies_ok { eval 'qux()' }, 'qux() not imported';
dies_ok { eval 'gaz()' }, 'gaz() not imported';
}
View
12 S14-traits/routines.t
@@ -9,16 +9,16 @@ plan(10);
has $.description is rw;
}
- multi trait_mod:<is>(Routine $code, description, $arg) {
- $code does description($arg);
+ multi trait_mod:<is>(Routine $code, description, $arg) {
+ $code does description($arg)
}
multi trait_mod:<is>(Routine $code, description) {
- $code does description("missing description!");
+ $code does description('missing description!')
}
- multi trait_mod:<is>(Routine $code, $arg, :$described!) {
- $code does description($arg);
+ multi trait_mod:<is>(Routine $code, Str :$described!) {
+ $code does description($described);
}
- multi trait_mod:<is>(Routine $code, :$described!) {
+ multi trait_mod:<is>(Routine $code, Bool :$described!) {
$code does description("missing description!");
}
View
5 integration/advent2009-day12.t
@@ -12,7 +12,7 @@ BEGIN {
{
eval_lives_ok 'use Fancy::Utilities', 'Can use Fancy::Utilities';
- use Fancy::Utilities;
+ use Fancy::Utilities :greet;
is Fancy::Utilities::lolgreet('Tene'), 'O HAI TENE', 'Referencing subs by fullname works';
is lolgreet('Jnthn'), 'O HAI JNTHN', 'Exporting symbols works';
}
@@ -27,13 +27,12 @@ BEGIN {
nok nicegreet('Jnthn'), 'Good morning, Jnthn!', 'Cannot use a sub not explicitly imported';
}
-#?rakudo skip "Importing all symbols using :ALL doesn't work in current Rakudo"
{
eval_lives_ok 'use Fancy::Utilities :ALL;', 'Can import everything marked for export using :ALL';
use Fancy::Utilities :ALL;
#?pugs todo
- is lolrequest("Cake"), 'I CAN HAZ A cake?', 'Can use a sub marked as exported and imported via :ALL';
+ is lolrequest("Cake"), 'I CAN HAZ A CAKE?', 'Can use a sub marked as exported and imported via :ALL';
}
#?rakudo skip "Multi subs aren't imported by default in current Rakudo - is this to spec?"
Please sign in to comment.
Something went wrong with that request. Please try again.