test update

This commit is contained in:
Arvid Norberg 2011-11-19 06:36:44 +00:00
parent c40d072ab1
commit f234cf71d8
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ void report_failure(char const* str, char const* file, int line);
#define TEST_EQUAL(x, y) \ #define TEST_EQUAL(x, y) \
if (x != y) { \ if (x != y) { \
std::stringstream s__; \ std::stringstream s__; \
s__ << "TEST_EQUAL_ERROR: " << #x << ": " << x << " expected: " << y << std::endl; \ s__ << "TEST_EQUAL_ERROR: " #x ": " << x << " expected: " << y << std::endl; \
TEST_REPORT_AUX(s__.str().c_str(), __FILE__, __LINE__); \ TEST_REPORT_AUX(s__.str().c_str(), __FILE__, __LINE__); \
} }
#else #else
@ -85,7 +85,7 @@ void report_failure(char const* str, char const* file, int line);
try { \ try { \
if (x != y) { \ if (x != y) { \
std::stringstream s__; \ std::stringstream s__; \
s__ << "TEST_EQUAL_ERROR: " << #x << ": " << x << " expected: " << y << std::endl; \ s__ << "TEST_EQUAL_ERROR: " #x ": " << x << " expected: " << y << std::endl; \
TEST_REPORT_AUX(s__.str().c_str(), __FILE__, __LINE__); \ TEST_REPORT_AUX(s__.str().c_str(), __FILE__, __LINE__); \
} \ } \
} \ } \