From a5e90892da7de8f10dae70b75f1fb51587eaf8db Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 26 Mar 2012 02:26:40 +0200 Subject: tests: changed CPPUNIT_ASSERT to CPPUNIT_ASSERT_EQUAL for better error msgs --- test/utils/image.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/utils/image.cpp') 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() -- cgit v1.2.3