Changeset 85:09e29f1284b6 in rrlib_util


Ignore:
Timestamp:
28.05.2013 09:21:48 (6 years ago)
Author:
Michael Arndt <m_arndt@…>
Branch:
default
Phase:
public
Message:

Added wrapper to CPPUNIT_ASSERT_DOUBLES_EQUAL which can be used to check equality for double values with given delta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tUnitTestSuite.h

    r80 r85  
    6767#define RRLIB_UNIT_TESTS_ASSERT(expression) CPPUNIT_ASSERT(expression) 
    6868#define RRLIB_UNIT_TESTS_EQUALITY(a, b) CPPUNIT_ASSERT_EQUAL(a, b) 
     69#define RRLIB_UNIT_TESTS_EQUALITY_DOUBLE(a, b, delta) CPPUNIT_ASSERT_DOUBLES_EQUAL(a, b, delta) 
    6970#define RRLIB_UNIT_TESTS_EXCEPTION(expression, exception_type) CPPUNIT_ASSERT_THROW(expression, exception_type) 
    7071 
Note: See TracChangeset for help on using the changeset viewer.