X-Git-Url: http://git.imager.perl.org/imager.git/blobdiff_plain/2a27eeffe848ccc741afab725dc8ee893527b7eb..a445d49c997e8561714ba17165b3d6bc78249a24:/t/t01introvert.t diff --git a/t/t01introvert.t b/t/t01introvert.t index d63eb5db..02f5c638 100644 --- a/t/t01introvert.t +++ b/t/t01introvert.t @@ -125,9 +125,9 @@ is(Imager::i_img_type($im_pal), 0, "pal img shouldn't be paletted now"); is_color3($colors[1], 0, 255, 0, "still green"); is_color3($colors[2], 0, 0, 255, "still blue"); is_color3($colors[3], 0, 0, 0, "still black"); - is(Imager::i_gsamp($im_pal2, 0, 100, 0, [ 0, 1, 2 ]), - "\0\xFF\0\0\0\0"."\xFF\0\0" x 48 . "\0\0\xFF" x 50, - "colors are still correct"); + is_deeply([ unpack("C", Imager::i_gsamp($im_pal2, 0, 100, 0, [ 0, 1, 2 ])) ], + [ unpack("C", "\0\xFF\0\0\0\0"."\xFF\0\0" x 48 . "\0\0\xFF" x 50) ], + "colors are still correct"); } # test the OO interfaces