--- a/test/list_tests.c Tue Oct 02 13:43:17 2012 +0200 +++ b/test/list_tests.c Thu Oct 04 11:37:23 2012 +0200 @@ -7,12 +7,12 @@ UCX_TEST_IMPLEMENT(test_ucx_list_append) { UcxList *list = ucx_list_append(NULL, "Hello"); UCX_TEST_BEGIN - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); list = ucx_list_append(list, " World!"); - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") - UCX_TEST_ASSERT(list->next->next == NULL, "failed") + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); UCX_TEST_END ucx_list_free(list); @@ -23,9 +23,9 @@ UCX_TEST_BEGIN list = ucx_list_prepend(list, "Hello"); - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") - UCX_TEST_ASSERT(list->next->next == NULL, "failed") + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); UCX_TEST_END ucx_list_free(list); @@ -40,8 +40,8 @@ list3 = ucx_list_prepend(list3, "Hallo"); UCX_TEST_BEGIN - UCX_TEST_ASSERT(ucx_list_equals(list, list2, cmp_string, NULL), "failed") - UCX_TEST_ASSERT(!ucx_list_equals(list, list3, cmp_string, NULL), "failed") + UCX_TEST_ASSERT(ucx_list_equals(list, list2, cmp_string, NULL), "failed"); + UCX_TEST_ASSERT(!ucx_list_equals(list, list3, cmp_string, NULL), "failed"); UCX_TEST_END ucx_list_free(list3); @@ -56,9 +56,9 @@ list = ucx_list_concat(list, list2); UCX_TEST_BEGIN - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") - UCX_TEST_ASSERT(list->next->next == NULL, "failed") + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); UCX_TEST_END if (list->next == NULL) { @@ -118,9 +118,9 @@ list = ucx_list_remove(list, ucx_list_get(list, 1)); - UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") - UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") - UCX_TEST_ASSERT(list->next->next == NULL, "failed") + UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed"); + UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed"); + UCX_TEST_ASSERT(list->next->next == NULL, "failed"); UCX_TEST_END ucx_list_free(list); @@ -140,9 +140,9 @@ UcxList *copy = ucx_list_clone(list, copy_string, NULL); UCX_TEST_BEGIN - UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed") - UCX_TEST_ASSERT(hello != copy->data, "first element is no copy") - UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy") + UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed"); + UCX_TEST_ASSERT(hello != copy->data, "first element is no copy"); + UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy"); UCX_TEST_END free(copy->next->data);