update unit test

This commit is contained in:
artemp 2015-09-16 10:15:21 +01:00
parent acb8feea01
commit 8c8ea74a63

View file

@ -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";