1.1 --- a/test/dlist_tests.c Tue Oct 02 13:43:17 2012 +0200 1.2 +++ b/test/dlist_tests.c Thu Oct 04 11:37:23 2012 +0200 1.3 @@ -8,12 +8,12 @@ 1.4 UcxDlist *list = ucx_dlist_append(NULL, "Hello"); 1.5 UCX_TEST_BEGIN 1.6 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_dlist_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 UCX_TEST_END 1.17 1.18 ucx_dlist_free(list); 1.19 @@ -25,9 +25,9 @@ 1.20 1.21 list = ucx_dlist_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_dlist_free(list); 1.32 @@ -42,8 +42,8 @@ 1.33 list3 = ucx_dlist_prepend(list3, "Hallo"); 1.34 UCX_TEST_BEGIN 1.35 1.36 - UCX_TEST_ASSERT(ucx_dlist_equals(list, list2, cmp_string, NULL), "failed") 1.37 - UCX_TEST_ASSERT(!ucx_dlist_equals(list, list3, cmp_string, NULL), "failed") 1.38 + UCX_TEST_ASSERT(ucx_dlist_equals(list, list2, cmp_string, NULL), "failed"); 1.39 + UCX_TEST_ASSERT(!ucx_dlist_equals(list, list3, cmp_string, NULL), "failed"); 1.40 1.41 UCX_TEST_END 1.42 ucx_dlist_free(list3); 1.43 @@ -58,9 +58,9 @@ 1.44 1.45 list = ucx_dlist_concat(list, list2); 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 ucx_dlist_free(list); 1.56 @@ -130,9 +130,9 @@ 1.57 1.58 list = ucx_dlist_remove(list, ucx_dlist_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 1.67 UCX_TEST_END 1.68 ucx_dlist_free(list); 1.69 @@ -152,9 +152,9 @@ 1.70 UcxDlist *copy = ucx_dlist_clone(list, copy_string, NULL); 1.71 UCX_TEST_BEGIN 1.72 1.73 - UCX_TEST_ASSERT(ucx_dlist_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_dlist_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);