diff -r 18823857ce79 -r 47f7fdbddb62 test/list_tests.c --- a/test/list_tests.c Wed Feb 27 09:41:17 2013 +0100 +++ b/test/list_tests.c Wed Feb 27 10:09:23 2013 +0100 @@ -3,6 +3,7 @@ */ #include "list_tests.h" +#include "ucx/comparator.h" UCX_TEST_IMPLEMENT(test_ucx_list_append) { UcxList *list = ucx_list_append(NULL, (void*)"Hello"); @@ -44,8 +45,8 @@ list3 = ucx_list_prepend(list3, (void*)"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, ucx_strcmp, NULL), "failed"); + UCX_TEST_ASSERT(!ucx_list_equals(list, list3, ucx_strcmp, NULL), "failed"); UCX_TEST_END ucx_list_free(list3); @@ -148,7 +149,7 @@ 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(ucx_list_equals(list, copy, ucx_strcmp, 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"); @@ -179,11 +180,11 @@ expected = ucx_list_append(expected, (void*)"test"); expected = ucx_list_append(expected, (void*)"this"); - list = ucx_list_sort(list, cmp_string, NULL); + list = ucx_list_sort(list, ucx_strcmp, NULL); UCX_TEST_BEGIN UCX_TEST_ASSERT( - ucx_list_equals(list, expected, cmp_string, NULL), "failed"); + ucx_list_equals(list, expected, ucx_strcmp, NULL), "failed"); UCX_TEST_END ucx_list_free(expected);