Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fudge return.t for rakudo
  • Loading branch information
moritz committed Jul 12, 2011
1 parent 6b3e7cb commit 6dc8424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S06-advanced_subroutine_features/return.t
Expand Up @@ -262,7 +262,6 @@ lives_ok({ foo_hash_ref()<foo> },
# return should desugar to &?ROUTINE.leave, where &?ROUTINE is lexically scoped
# to mean the current "official" subroutine or method.

#?rakudo todo 'tie return() to lexical scope'
{
sub userdefinedcontrol3 (&block) { block(); return 36 }
sub userdefinedcontrol2 (&block) { userdefinedcontrol3(&block); return 24 }
Expand Down Expand Up @@ -291,7 +290,6 @@ class Foo {
}

#?pugs 3 todo 'return(), blocks and methods'
#?rakudo 3 todo 'tie return() to lexical scope'
is Foo.new.officialmeth(), 42,
"return correctly from official method only";
is Foo.new.officialsubmeth(), 43,
Expand All @@ -300,6 +298,7 @@ is Foo::official(), 44,
"return correctly from official sub only";

# RT #75118
#?rakudo skip 'RT 75118'
{
sub named() {
return 1, 2, :c(3);
Expand All @@ -313,7 +312,7 @@ is Foo::official(), 44,
# RT #61732
{
sub rt61732_c { 1; CATCH {} }
#?rakudo skip 'RT #61732'
#?rakudo skip 'RT 61732'
is rt61732_c(), 1, 'sub with empty catch block returns value before block';
}

Expand All @@ -325,6 +324,7 @@ is Foo::official(), 44,
# RT #63912
{
sub rt63912 { return 1, 2; }
#?rakudo todo 'RT 63912'
lives_ok { rt63912() }, 'can call sub that returns two things (no parens)';
}

Expand Down

0 comments on commit 6dc8424

Please sign in to comment.