Skip to content

Commit

Permalink
Merge pull request #1229 from MasterDuke17/test_for_RT132291
Browse files Browse the repository at this point in the history
Test for RT #132291
  • Loading branch information
zoffixznet committed Nov 3, 2017
2 parents 1c2c7d8 + cd9f66e commit 3241217
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/05-messages/02-errors.t
Expand Up @@ -2,11 +2,18 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 1;
plan 2;

# RT #132295

is-run :2(1), :err{.contains: use 1.base(2) instead}, :status(* !== 0),
':2(1) suggests using 1.base(2)';

# RT #132291

throws-like { for [:a] X [:b] -> ($i, $j) { } },
Exception,
message => / '<anon>' /,
"anonymous subs get '<anon>' in arity error messages";

# vim: ft=perl6 expandtab sw=4

0 comments on commit 3241217

Please sign in to comment.