1.1 --- a/test/list_tests.c Tue Oct 02 13:43:17 2012 +0200 1.2 +++ b/test/list_tests.c Thu Oct 04 11:37:23 2012 +0200 1.3 @@ -7,12 +7,12 @@ 1.4 UCX_TEST_IMPLEMENT(test_ucx_list_append) { 1.5 UcxList *list = ucx_list_append(NULL, "Hello"); 1.6 UCX_TEST_BEGIN 1.7 - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") 1.8 + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); 1.9 1.10 list = ucx_list_append(list, " World!"); 1.11 1.12 - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") 1.13 - UCX_TEST_ASSERT(list->next->next == NULL, "failed") 1.14 + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); 1.15 + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); 1.16 1.17 UCX_TEST_END 1.18 ucx_list_free(list); 1.19 @@ -23,9 +23,9 @@ 1.20 UCX_TEST_BEGIN 1.21 list = ucx_list_prepend(list, "Hello"); 1.22 1.23 - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") 1.24 - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") 1.25 - UCX_TEST_ASSERT(list->next->next == NULL, "failed") 1.26 + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); 1.27 + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); 1.28 + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); 1.29 1.30 UCX_TEST_END 1.31 ucx_list_free(list); 1.32 @@ -40,8 +40,8 @@ 1.33 list3 = ucx_list_prepend(list3, "Hallo"); 1.34 1.35 UCX_TEST_BEGIN 1.36 - UCX_TEST_ASSERT(ucx_list_equals(list, list2, cmp_string, NULL), "failed") 1.37 - UCX_TEST_ASSERT(!ucx_list_equals(list, list3, cmp_string, NULL), "failed") 1.38 + UCX_TEST_ASSERT(ucx_list_equals(list, list2, cmp_string, NULL), "failed"); 1.39 + UCX_TEST_ASSERT(!ucx_list_equals(list, list3, cmp_string, NULL), "failed"); 1.40 UCX_TEST_END 1.41 1.42 ucx_list_free(list3); 1.43 @@ -56,9 +56,9 @@ 1.44 list = ucx_list_concat(list, list2); 1.45 UCX_TEST_BEGIN 1.46 1.47 - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") 1.48 - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") 1.49 - UCX_TEST_ASSERT(list->next->next == NULL, "failed") 1.50 + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); 1.51 + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); 1.52 + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); 1.53 1.54 UCX_TEST_END 1.55 if (list->next == NULL) { 1.56 @@ -118,9 +118,9 @@ 1.57 1.58 list = ucx_list_remove(list, ucx_list_get(list, 1)); 1.59 1.60 - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") 1.61 - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") 1.62 - UCX_TEST_ASSERT(list->next->next == NULL, "failed") 1.63 + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); 1.64 + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); 1.65 + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); 1.66 UCX_TEST_END 1.67 1.68 ucx_list_free(list); 1.69 @@ -140,9 +140,9 @@ 1.70 UcxList *copy = ucx_list_clone(list, copy_string, NULL); 1.71 UCX_TEST_BEGIN 1.72 1.73 - UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed") 1.74 - UCX_TEST_ASSERT(hello != copy->data, "first element is no copy") 1.75 - UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy") 1.76 + UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed"); 1.77 + UCX_TEST_ASSERT(hello != copy->data, "first element is no copy"); 1.78 + UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy"); 1.79 1.80 UCX_TEST_END 1.81 free(copy->next->data);