Skip to content

Commit 46c5c0c

Browse files
committed
fixture.h: added ASSERT_MSG
1 parent acc425e commit 46c5c0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/fixture.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ class TestInstance {
320320
#define TEST_CASE( NAME ) do { if (prepareTest(#NAME)) { setVerbose(false); try { NAME(); teardownTest(); } catch (const AssertFailedError&) {} catch (...) { assertNoThrowFail(__FILE__, __LINE__, false); } } } while (false)
321321

322322
#define ASSERT( CONDITION ) assert_(__FILE__, __LINE__, (CONDITION))
323+
#define ASSERT_MSG( CONDITION, MSG ) assert_(__FILE__, __LINE__, (CONDITION), MSG)
323324
#define ASSERT_LOC( CONDITION, FILE_, LINE_ ) assert_(FILE_, LINE_, (CONDITION))
324325
#define ASSERT_LOC_MSG( CONDITION, MSG, FILE_, LINE_ ) assert_(FILE_, LINE_, (CONDITION), MSG)
325326
// *INDENT-OFF*

0 commit comments

Comments
 (0)