Changeset 116:83fa55e9e8ac in rrlib_util


Ignore:
Timestamp:
21.04.2014 11:02:11 (6 years ago)
Author:
Michael Arndt <m_arndt@…>
Branch:
default
Phase:
public
Message:

Rename nondescriptive parameters "a" and "b" to "expected" and "actual" - every single time I have to look up the semantics in the CPPUNIT documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tUnitTestSuite.h

    r98 r116  
    6767#define RRLIB_UNIT_TESTS_ASSERT(expression) CPPUNIT_ASSERT(expression) 
    6868#define RRLIB_UNIT_TESTS_ASSERT_MESSAGE(msg, expression) CPPUNIT_ASSERT_MESSAGE(msg, expression) 
    69 #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) 
    71 #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_MESSAGE(msg, a, b, delta) 
     69#define RRLIB_UNIT_TESTS_EQUALITY(expected, actual) CPPUNIT_ASSERT_EQUAL(expected, actual) 
     70#define RRLIB_UNIT_TESTS_EQUALITY_MESSAGE(msg, expected, actual) CPPUNIT_ASSERT_EQUAL_MESSAGE(msg, expected, actual) 
     71#define RRLIB_UNIT_TESTS_EQUALITY_DOUBLE(expected, actual, delta) CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta) 
     72#define RRLIB_UNIT_TESTS_EQUALITY_DOUBLE_MESSAGE(msg, expected, actual, delta) CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(msg, expected, actual, delta) 
    7373#define RRLIB_UNIT_TESTS_EXCEPTION(expression, exception_type) CPPUNIT_ASSERT_THROW(expression, exception_type) 
    7474#define RRLIB_UNIT_TESTS_EXCEPTION_MESSAGE(msg, expression, exception_type) CPPUNIT_ASSERT_THROW_MESSAGE(msg, expression, exception_type) 
Note: See TracChangeset for help on using the changeset viewer.