Skip to content

Commit

Permalink
[v6.d REVIEW] Move grammar error text test out of roast
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jul 15, 2018
1 parent 5cf0afc commit c2db40b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/05-messages/03-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 17;
plan 18;

subtest '.map does not explode in optimizer' => {
plan 3;
Expand Down Expand Up @@ -136,4 +136,11 @@ throws-like 'while (0){}', X::Syntax::Missing,
is-run '*...‘WAT’', :err{not .contains: 'SORRY'}, :out(''), :exitcode{.so},
'runtime time errors do not contain ==SORRY==';

# RT #124219
is-run
grammar Bug { token term { a }; token TOP { <term> % \n } }
Bug.parse( 'a' );
, :err(/'token TOP { <term>'/), :exitcode{.so},
'`quantifier with %` error includes the token it appears in';

# vim: ft=perl6 expandtab sw=4

0 comments on commit c2db40b

Please sign in to comment.