Changeset 86:7b5f4bbe0cd1 in rrlib_util


Ignore:
Timestamp:
28.05.2013 14:03:12 (6 years ago)
Author:
Michael Arndt <m_arndt@…>
Branch:
default
Phase:
public
Message:

Added additional _MESSAGE macros that can be used to output a message on failing test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tUnitTestSuite.h

    r85 r86  
    6666 
    6767#define RRLIB_UNIT_TESTS_ASSERT(expression) CPPUNIT_ASSERT(expression) 
     68#define RRLIB_UNIT_TESTS_ASSERT_MESSAGE(msg, expression) CPPUNIT_ASSERT_MESSAGE(msg, expression) 
    6869#define RRLIB_UNIT_TESTS_EQUALITY(a, b) CPPUNIT_ASSERT_EQUAL(a, b) 
     70#define RRLIB_UNIT_TESTS_EQUALITY_MESSAGE(msg, a, b) CPPUNIT_ASSERT_EQUAL_MESSAGE(msg, a, b) 
    6971#define RRLIB_UNIT_TESTS_EQUALITY_DOUBLE(a, b, delta) CPPUNIT_ASSERT_DOUBLES_EQUAL(a, b, delta) 
     72#define RRLIB_UNIT_TESTS_EQUALITY_DOUBLE_MESSAGE(msg, a, b, delta) CPPUNIT_ASSERT_DOUBLES_EQUAL(msg, a, b, delta) 
    7073#define RRLIB_UNIT_TESTS_EXCEPTION(expression, exception_type) CPPUNIT_ASSERT_THROW(expression, exception_type) 
     74#define RRLIB_UNIT_TESTS_EXCEPTION_MESSAGE(msg, expression, exception_type) CPPUNIT_ASSERT_THROW_MESSAGE(msg, expression, exception_type) 
    7175 
    7276//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.