Skip to content

Commit

Permalink
Merge pull request #3245 from Altai-man/test-warning
Browse files Browse the repository at this point in the history
Test rakudo-specific warning for shape specifier
  • Loading branch information
lizmat committed Nov 12, 2019
2 parents a9cd640 + 7f15a57 commit d36c2e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/05-messages/10-warnings.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 8;
plan 9;

subtest 'Supply.interval with negative value warns' => {
plan 2;
Expand Down Expand Up @@ -83,4 +83,9 @@ is-run 「use experimental :macros; macro z($) { quasi {} };
z $; z <x>; print "pass", :out<pass>,
'args to macros do not cause useless use warnings';

# https://github.com/rakudo/rakudo/issues/2554
is-run my @a[Int] = 1,2,3; dd @a,
'ignored shape specification issues a warning',
:err(/'Ignoring [Int] as shape specification'/);

# vim: ft=perl6 expandtab sw=4

0 comments on commit d36c2e5

Please sign in to comment.