38 #include "dlist_tests.h" |
38 #include "dlist_tests.h" |
39 #include "string_tests.h" |
39 #include "string_tests.h" |
40 #include "mpool_tests.h" |
40 #include "mpool_tests.h" |
41 #include "map_tests.h" |
41 #include "map_tests.h" |
42 #include "buffer_tests.h" |
42 #include "buffer_tests.h" |
43 |
|
44 void* copy_string(void* e, void* data) { |
|
45 char *str = (char*) e; |
|
46 size_t n = 1+strlen(str); |
|
47 char *cpy = (char*) malloc(n); |
|
48 memcpy(cpy, str, n); |
|
49 return cpy; |
|
50 } |
|
51 |
43 |
52 UCX_TEST_IMPLEMENT(testTestSuitePositive) { |
44 UCX_TEST_IMPLEMENT(testTestSuitePositive) { |
53 UCX_TEST_BEGIN |
45 UCX_TEST_BEGIN |
54 UCX_TEST_ASSERT(2*2 == 4, "the test framework fails"); |
46 UCX_TEST_ASSERT(2*2 == 4, "the test framework fails"); |
55 UCX_TEST_END |
47 UCX_TEST_END |