update unit test
This commit is contained in:
parent
acb8feea01
commit
8c8ea74a63
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ SECTION("readers") {
|
|||
{
|
||||
mapnik::image_rgba8 im_og;
|
||||
auto im_size = mapnik::image_rgba8::pixel_size * im_og.width() * im_og.height();
|
||||
mapnik::detail::buffer buf(im_og.bytes(),im_size);
|
||||
mapnik::image_rgba8 im2(im_og.width(),im_og.height(),std::move(buf));
|
||||
mapnik::detail::buffer buf(im_og.bytes(), im_size);
|
||||
mapnik::image_rgba8 im2(im_og.width(), im_og.height(), buf.data());
|
||||
CHECK( im2.bytes() == im_og.bytes() );
|
||||
#if defined(HAVE_JPEG)
|
||||
should_throw = "./test/data/images/blank.jpg";
|
||||
|
|
Loading…
Add table
Reference in a new issue