test/list_tests.c

changeset 211
07a284486fa1
parent 192
1e51558b9d09
child 212
c766c423dee6
equal deleted inserted replaced
210:6bdb04d87236 211:07a284486fa1
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);

mercurial