Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add rudimentary tests of no worries pragma
  • Loading branch information
zoffixznet committed Jan 14, 2018
1 parent 27f9e2e commit 5c91d68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-exceptions/misc.t
Expand Up @@ -5,7 +5,7 @@ use lib "t/spec/packages";
use Test;
use Test::Util;

plan 437;
plan 438;

throws-like '42 +', Exception, "missing rhs of infix", message => rx/term/;

Expand Down Expand Up @@ -967,4 +967,11 @@ throws-like 'sub foo(@array ($first, @rest)) { say @rest }; foo <1 2 3>;',
'enum values are suggested for misspellings'
}

is_run
my $ = :WorryFoo<>; { no worries; my $ = :WorryBar<> }; my $ = :WorryBer<>;
print "pass"
, %(:out<pass>, :err{
.contains: 'use :WorryFoo' & 'use :WorryBer' & none 'use :WorryBar'
}), 'lexical worries pragma disables compiler warnings';

# vim: ft=perl6

0 comments on commit 5c91d68

Please sign in to comment.