test update
This commit is contained in:
parent
c40d072ab1
commit
f234cf71d8
test
|
@ -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__); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue