aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/image.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/image.cpp')
-rw-r--r--test/utils/image.cpp16
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()