diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-03-26 02:26:40 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | a5e90892da7de8f10dae70b75f1fb51587eaf8db (patch) | |
tree | 42f9f092375e65a3b0228aed87865d9bedded2de /test/utils/image.cpp | |
parent | 9bd2b5f28805c9a5d0df28f6323b4c895e3fd9f4 (diff) | |
download | usdx-a5e90892da7de8f10dae70b75f1fb51587eaf8db.tar.gz usdx-a5e90892da7de8f10dae70b75f1fb51587eaf8db.tar.xz usdx-a5e90892da7de8f10dae70b75f1fb51587eaf8db.zip |
tests: changed CPPUNIT_ASSERT to CPPUNIT_ASSERT_EQUAL for better error msgs
Diffstat (limited to '')
-rw-r--r-- | test/utils/image.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/utils/image.cpp b/test/utils/image.cpp index c5f3bb48..f94e9afe 100644 --- a/test/utils/image.cpp +++ b/test/utils/image.cpp @@ -59,8 +59,8 @@ namespace usdx const SDL_Surface *surface = img.get_surface(); log << log4cpp::Priority::INFO << "test.bmp: " << "w = " << surface->w << "; h = " << surface->h; - CPPUNIT_ASSERT(40 == surface->w); - CPPUNIT_ASSERT(30 == surface->h); + CPPUNIT_ASSERT_EQUAL(40, surface->w); + CPPUNIT_ASSERT_EQUAL(30, surface->h); } void testJpg() @@ -69,8 +69,8 @@ namespace usdx const SDL_Surface *surface = img.get_surface(); log << log4cpp::Priority::INFO << "test.jpg: " << "w = " << surface->w << "; h = " << surface->h; - CPPUNIT_ASSERT(40 == surface->w); - CPPUNIT_ASSERT(30 == surface->h); + CPPUNIT_ASSERT_EQUAL(40, surface->w); + CPPUNIT_ASSERT_EQUAL(30, surface->h); } void testPng() @@ -79,8 +79,8 @@ namespace usdx const SDL_Surface *surface = img.get_surface(); log << log4cpp::Priority::INFO << "test.png: " << "w = " << surface->w << "; h = " << surface->h; - CPPUNIT_ASSERT(40 == surface->w); - CPPUNIT_ASSERT(30 == surface->h); + CPPUNIT_ASSERT_EQUAL(40, surface->w); + CPPUNIT_ASSERT_EQUAL(30, surface->h); } void testGif() @@ -89,8 +89,8 @@ namespace usdx const SDL_Surface *surface = img.get_surface(); log << log4cpp::Priority::INFO << "test.gif: " << "w = " << surface->w << "; h = " << surface->h; - CPPUNIT_ASSERT(40 == surface->w); - CPPUNIT_ASSERT(30 == surface->h); + CPPUNIT_ASSERT_EQUAL(40, surface->w); + CPPUNIT_ASSERT_EQUAL(30, surface->h); } void testNotAnImage() |