- if ($warn) {
- moan "unpack('C0U*') false negative\n";
- print "not ";
- }
- } elsif ($okay eq 'n') {
- if (!$warn || ($experr ne '' && $warn !~ /$experr/)) {
- moan "unpack('C0U*') false positive\n";
- print "not ";
- }
+ is($warn, '', "No warnings expected for $id");
+ } elsif ($okay ne 'n') {
+ is($okay, 'n', "Confused test description for $id");
+ } elsif($experr) {
+ like($warn, qr/$experr/, "Expected warning for $id");
+ } else {
+ isnt($warn, '', "Expect a warning for $id");