image_io_test - increase coverage

This commit is contained in:
artemp 2016-01-20 13:43:01 +01:00
parent c36ae3964a
commit be7a70746c

View File

@ -158,7 +158,7 @@ SECTION("image_util : save_to_file/save_to_stream/save_to_string")
unsigned h = reader->height();
auto im2 = reader->read(0, 0, w, h);
CHECK(im2.size() == im.size());
if (format == "png" || format == "tiff")
if (extension == "png" || extension == "tiff")
{
CHECK(0 == std::memcmp(im2.bytes(), im.bytes(), im.width() * im.height()));
}