338 UCX_TEST_ASSERT(ucx_list_equals(list, copy, ucx_strcmp, NULL), "failed"); |
338 UCX_TEST_ASSERT(ucx_list_equals(list, copy, ucx_strcmp, NULL), "failed"); |
339 UCX_TEST_ASSERT(hello != copy->data, "first element is no copy"); |
339 UCX_TEST_ASSERT(hello != copy->data, "first element is no copy"); |
340 UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy"); |
340 UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy"); |
341 |
341 |
342 UCX_TEST_END |
342 UCX_TEST_END |
343 free(copy->next->data); |
343 |
344 free(copy->data); |
344 ucx_list_free_contents(copy, free); |
345 |
345 |
346 free(world); |
346 free(world); |
347 free(hello); |
347 free(hello); |
348 ucx_list_free(list); |
348 ucx_list_free(list); |
349 ucx_list_free(copy); |
349 ucx_list_free(copy); |