Skip to content

Commit

Permalink
Test no error repeatage for say 1 [if/unless];
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 14, 2017
1 parent 2c95179 commit eaf609e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion t/05-messages/02-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 12;
plan 14;

# RT #132295

Expand Down Expand Up @@ -86,4 +86,16 @@ is-run 「my %h = <a 1 b 2>; enum Bits (%h)」, :err{
'error for `=for` suggests it might be a Pod mistake';
}

{ # RT #125596
is-run say 1 if;, :err{
1 == .comb: 'Whitespace required'
and 1 == .comb: keyword 'if'
}, :1exitcode, '`say 1 if;` does not repeat error';

is-run say 1 unless;, :err{
1 == .comb: 'Whitespace required'
and 1 == .comb: keyword 'unless'
}, :1exitcode, '`say 1 unless;` does not repeat error';
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit eaf609e

Please sign in to comment.