|
|
@ -7,17 +7,17 @@ |
|
|
|
#define __TEST_CASE_FUNCTION(x) __test##x |
|
|
|
#define __TEST_CASE_FUNCTION(x) __test##x |
|
|
|
#define __TEST_CASE_STRUCT(x) __testStruct##x |
|
|
|
#define __TEST_CASE_STRUCT(x) __testStruct##x |
|
|
|
|
|
|
|
|
|
|
|
#define TEST_CASE(x) \ |
|
|
|
#define TEST_CASE(x) \ |
|
|
|
static void __TEST_CASE_FUNCTION(x)(); \
|
|
|
|
static void __TEST_CASE_FUNCTION(x)(); \
|
|
|
|
struct __TEST_CASE_STRUCT(x) { \
|
|
|
|
struct __TEST_CASE_STRUCT(x) { \
|
|
|
|
__TEST_CASE_STRUCT(x) \
|
|
|
|
__TEST_CASE_STRUCT(x) \
|
|
|
|
() \
|
|
|
|
() \
|
|
|
|
{ \
|
|
|
|
{ \
|
|
|
|
Test::TestSuite::the().addCase( \
|
|
|
|
Test::TestSuite::the().addCase( \
|
|
|
|
*new Test::TestCase(#x, __TEST_CASE_FUNCTION(x))); \
|
|
|
|
{ #x, __TEST_CASE_FUNCTION(x) }); \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
}; \
|
|
|
|
}; \
|
|
|
|
static struct __TEST_CASE_STRUCT(x) __TEST_CASE_STRUCT(x); \
|
|
|
|
static struct __TEST_CASE_STRUCT(x) __TEST_CASE_STRUCT(x); \
|
|
|
|
static void __TEST_CASE_FUNCTION(x)() |
|
|
|
static void __TEST_CASE_FUNCTION(x)() |
|
|
|
|
|
|
|
|
|
|
|
namespace Test { |
|
|
|
namespace Test { |
|
|
|