This is an automatically generated mail to inform you that tests are now available in t/spec/S05-grammar/parse_and_parsefile.t
commit d68356ef8784d27659e79d457afa213baf7125d0 Author: kyle <k...@c213334d-75ef-0310-aa23-eaa082d1ae64> Date: Mon Dec 28 22:33:52 2009 +0000 [t/spec] Test for RT 71062: dies calling grammar named "Integer" git-svn-id: http://svn.pugscode.org/p...@29412 c213334d-75ef-0310-aa23-eaa082d1ae64 diff --git a/t/spec/S05-grammar/parse_and_parsefile.t b/t/spec/S05-grammar/parse_and_parsefile.t index 36bf26e..85720d6 100644 --- a/t/spec/S05-grammar/parse_and_parsefile.t +++ b/t/spec/S05-grammar/parse_and_parsefile.t @@ -1,7 +1,7 @@ use v6; use Test; -plan 7; +plan *; # tests .parse and .parsefile methods on a grammar @@ -31,4 +31,13 @@ is(~A::B.parse("zzz42zzz"), "42", ".parse works with namespaced grammars"); # TODO: Check for a good error message, not just the absence of a bad one. dies_ok { No::Such::Grammar.parse() }, '.parse on missing grammar dies'; +# RT #71062 +{ + grammar Integer { rule TOP { x } }; + #?rakudo todo 'RT 71062: dies calling grammar named "Integer"' + lives_ok { Integer.parse('x') }, 'can .parse grammar named "Integer"'; +} + +done_testing; + # vim: ft=perl6