Swapped group name and test name in CppUnitLite to match the convention we use in unit tests
parent
14a71aeedc
commit
5d86be270e
|
@ -60,7 +60,7 @@ protected:
|
||||||
/**
|
/**
|
||||||
* Normal test will wrap execution in a try/catch block to catch exceptions more effectively
|
* Normal test will wrap execution in a try/catch block to catch exceptions more effectively
|
||||||
*/
|
*/
|
||||||
#define TEST(testName, testGroup)\
|
#define TEST(testGroup, testName)\
|
||||||
class testGroup##testName##Test : public Test \
|
class testGroup##testName##Test : public Test \
|
||||||
{ public: testGroup##testName##Test () : Test (#testName "Test", __FILE__, __LINE__, true) {} \
|
{ public: testGroup##testName##Test () : Test (#testName "Test", __FILE__, __LINE__, true) {} \
|
||||||
virtual ~testGroup##testName##Test () {};\
|
virtual ~testGroup##testName##Test () {};\
|
||||||
|
@ -72,7 +72,7 @@ protected:
|
||||||
* For debugging only: use TEST_UNSAFE to allow debuggers to have access to exceptions, as this
|
* For debugging only: use TEST_UNSAFE to allow debuggers to have access to exceptions, as this
|
||||||
* will not wrap execution with a try/catch block
|
* will not wrap execution with a try/catch block
|
||||||
*/
|
*/
|
||||||
#define TEST_UNSAFE(testName, testGroup)\
|
#define TEST_UNSAFE(testGroup, testName)\
|
||||||
class testGroup##testName##Test : public Test \
|
class testGroup##testName##Test : public Test \
|
||||||
{ public: testGroup##testName##Test () : Test (#testName "Test", __FILE__, __LINE__, false) {} \
|
{ public: testGroup##testName##Test () : Test (#testName "Test", __FILE__, __LINE__, false) {} \
|
||||||
virtual ~testGroup##testName##Test () {};\
|
virtual ~testGroup##testName##Test () {};\
|
||||||
|
|
Loading…
Reference in New Issue