skip "cannot pack '$format' on this perl", 2
if is_valid_error($@);
- is($@, '');
- is($out, $_);
+ is($@, '', "no error");
+ is($out, $_, "unpack pack $format $_");
}
}
skip "cannot pack '$format' on this perl", 3
if is_valid_error($@);
- is($@, '');
- ok(defined $sum);
+ is($@, '', "no error");
+ ok(defined $sum, "sum bits $_, format $format defined");
my $len = $_; # Copy, so that we can reassign ''
$len = 16 unless length $len;
}
if ($calc_sum == $sum) { # HAS to be ==, not eq (so no is()).
- ok ("unpack '%$_$format' gave $sum");
+ pass ("unpack '%$_$format' gave $sum");
} else {
my $delta = 1.000001;
if ($format =~ tr /dDfF//
}
}
}
- }
+ }
}
}