51 return cpy; |
51 return cpy; |
52 } |
52 } |
53 |
53 |
54 UCX_TEST_IMPLEMENT(testTestSuitePositive) { |
54 UCX_TEST_IMPLEMENT(testTestSuitePositive) { |
55 UCX_TEST_BEGIN |
55 UCX_TEST_BEGIN |
56 UCX_TEST_ASSERT(2*2 == 4, "the test framework fails") |
56 UCX_TEST_ASSERT(2*2 == 4, "the test framework fails"); |
57 UCX_TEST_END |
57 UCX_TEST_END |
58 } |
58 } |
59 |
59 |
60 UCX_TEST_IMPLEMENT(testTestSuiteNegative) { |
60 UCX_TEST_IMPLEMENT(testTestSuiteNegative) { |
61 UCX_TEST_BEGIN |
61 UCX_TEST_BEGIN |
62 UCX_TEST_ASSERT(2*(-2) == 4, "the test framework works") |
62 UCX_TEST_ASSERT(2*(-2) == 4, "the test framework works"); |
63 UCX_TEST_END |
63 UCX_TEST_END |
64 } |
64 } |
65 |
65 |
66 UCX_TEST_SUBROUTINE(testTestSuiteRoutineSuccess,field) { |
66 UCX_TEST_SUBROUTINE(testTestSuiteRoutineSuccess,field) { |
67 int* i = (int*) field; |
67 int* i = (int*) field; |