diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-30 01:43:59 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-30 01:43:59 +0000 |
| commit | ca545930f35fde9f60f76a6d66de475da5cb098c (patch) | |
| tree | 3223a648942fbd1c30503f7e46a4ade699ea70a1 /test | |
| parent | e8d3e8b4057149b602029ec9a588ccb81a908d5c (diff) | |
Fix call to Image::compare; it returns false if images are identical.
This breaks alpha_blend_test for reasons that aren't yet clear.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test.cc b/test/test.cc index 41f195140..0c2f324e0 100644 --- a/test/test.cc +++ b/test/test.cc @@ -236,7 +236,11 @@ check_image (boost::filesystem::path ref, boost::filesystem::path check) ref_image.read (ref.string ()); Magick::Image check_image; check_image.read (check.string ()); - BOOST_CHECK_MESSAGE (ref_image.compare (check_image), ref << " differs from " << check); + BOOST_CHECK_MESSAGE ( + !ref_image.compare(check_image), + ref << " differs from " << check << " " + << ref_image.meanErrorPerPixel() << " " << ref_image.normalizedMaxError() << " " << ref_image.normalizedMeanError() + ); } void |
