Skip to content

Commit

Permalink
turn off gdal 1.10 check in colorization test
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jan 15, 2013
1 parent 4241b05 commit 9097540
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/unit/filters/ColorizationFilterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,19 @@ BOOST_AUTO_TEST_CASE(ColorizationFilterTest_test_1)
// capability of computing fast level 2, 4, and 8 overviews. This
// means the results are numerically, if not visually, different
// than before.
#if ((GDAL_VERSION_MAJOR == 1 && GDAL_VERSION_MINOR >= 10))
BOOST_CHECK_EQUAL(r, 195u);
BOOST_CHECK_EQUAL(g, 176u);
BOOST_CHECK_EQUAL(b, 36720u); // We scaled this up to 16bit by multiplying by 255

#else
// 1-15-13 -- maybe this is gone now? I get the original results
// with a trunk 1.10 build... hobu
// #if ((GDAL_VERSION_MAJOR == 1 && GDAL_VERSION_MINOR >= 10))
// BOOST_CHECK_EQUAL(r, 195u);
// BOOST_CHECK_EQUAL(g, 176u);
// BOOST_CHECK_EQUAL(b, 36720u); // We scaled this up to 16bit by multiplying by 255
//
// #else
BOOST_CHECK_EQUAL(r, 210u);
BOOST_CHECK_EQUAL(g, 205u);
BOOST_CHECK_EQUAL(b, 47175u); // We scaled this up to 16bit by multiplying by 255

#endif
// #endif

}

Expand Down

0 comments on commit 9097540

Please sign in to comment.