Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test that make({}) sets .ast to a Hash (RT #78510)
  • Loading branch information
moritz committed Oct 2, 2011
1 parent ac7ea9d commit c47bf35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions S05-grammar/action-stubs.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 15;
plan 16;

# L<S05/Grammars/"and optionally pass an action object">

Expand Down Expand Up @@ -104,9 +104,13 @@ is $action.calls, 'ab', '... and in the right order';
}
}

#?niecza todo
#?niecza 2 todo
is ActionsTestGrammar.parse("ab\ncd", :actions(TestActions.new)).ast, 123,
'Can call Str.subst in an action method without any trouble';
# RT #78510
isa_ok ActionsTestGrammar.parse('a', :actions(
class { method TOP($/) { make { a => 1 } } }
)).ast, Hash, 'Can make() a Hash';
}

# Test for a Rakudo bug revealed by 5ce8fcfe5 that (given the
Expand Down

0 comments on commit c47bf35

Please sign in to comment.