test/dlist_tests.c

changeset 30
23bb65cbf7a4
parent 27
22644e2572bc
child 33
9c219a62070d
equal deleted inserted replaced
29:bce0d7f2912b 30:23bb65cbf7a4
58 58
59 UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed") 59 UCX_TEST_ASSERT(strncmp(list->data, "Hello", 5) == 0, "failed")
60 UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") 60 UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
61 UCX_TEST_ASSERT(list->next->next == NULL, "failed") 61 UCX_TEST_ASSERT(list->next->next == NULL, "failed")
62 62
63 ucx_dlist_free(list2);
64 ucx_dlist_free(list); 63 ucx_dlist_free(list);
65 64
66 UCX_TEST_END 65 UCX_TEST_END
67 } 66 }
68 67
158 free(copy->next->data); 157 free(copy->next->data);
159 free(copy->data); 158 free(copy->data);
160 159
161 free(world); 160 free(world);
162 free(hello); 161 free(hello);
163 free(list); 162 ucx_dlist_free(list);
164 free(copy); 163 ucx_dlist_free(copy);
165 164
166 UCX_TEST_END 165 UCX_TEST_END
167 } 166 }

mercurial