ok(Imager::i_writeppm_wiol($im, $IO8), "write to cb");
# I originally compared this to $data, but that doesn't include the
# Imager header
-ok($work eq $data2, "write image match");
+is($work, $data2, "write image match");
ok($did_close, "did close");
# with a short buffer, no closer
$pos = 0;
$work = '';
ok(Imager::i_writeppm_wiol($im, $IO9), "write to short cb");
-ok($work eq $data2, "short write image match");
+is($work, $data2, "short write image match");
{
my $buf_data = "Test data";