4 use Test::More tests => 10;
9 map [__DIR__ . "/strict_$_->[0].fail", @$_[1 .. $#$_]],
10 ['1', qr/expect.*\).*after.*"\@y".*"\$z"/],
11 ['2', qr/expect.*\).*after.*"\@x".*"\$y"/],
12 ['3', qr/expect.*\).*after.*"%y".*"\$z"/],
13 ['4', qr/expect.*\).*after.*"\@y".*"\@z"/],
14 ['5', qr/Invalid.*rarity/],
16 my ($file, $pat) = @$fail;
22 is $done, undef, "faulty code doesn't load";
23 $exc or die "$file: $err" if $err;