Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #116597
  • Loading branch information
usev6 committed Oct 21, 2014
1 parent ee544c6 commit f2f0ea1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion S05-grammar/parse_and_parsefile.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 14;
plan 15;

# tests .parse and .parsefile methods on a grammar

Expand Down Expand Up @@ -60,6 +60,17 @@ eval_dies_ok '::No::Such::Grammar.parse()', '.parse on missing grammar dies';
is $match[0].perl, "Any", 'empty match is Any, not Null PMC access';
}

# RT #116597
#?rakudo.parrot todo 'RT #116597'
{
grammar RT116597 {
token TOP() { <lit 'a'> };
token lit($s) { $s };
}
lives_ok { RT116597.parse('a') },
'can use <rule "param"> form of rule invocation in grammar';
}

done;

# vim: ft=perl6 expandtab sw=4

0 comments on commit f2f0ea1

Please sign in to comment.