mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
image_io_test - increase coverage
This commit is contained in:
parent
c36ae3964a
commit
be7a70746c
@ -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()));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user