| 120 cxListFree(list); |
120 cxListFree(list); |
| 121 } |
121 } |
| 122 |
122 |
| 123 CX_TEST(test_kv_list_find_and_remove) { |
123 CX_TEST(test_kv_list_find_and_remove) { |
| 124 CxList *list = cxKvListCreateSimple(sizeof(int)); |
124 CxList *list = cxKvListCreateSimple(sizeof(int)); |
| 125 list->collection.cmpfunc = cx_cmp_int; |
125 cxCollectionCompareFunc(list, cx_cmp_int); |
| 126 int x, y; |
126 int x, y; |
| 127 CX_TEST_DO { |
127 CX_TEST_DO { |
| 128 CxMap *map = cxKvListAsMap(list); |
128 CxMap *map = cxKvListAsMap(list); |
| 129 |
129 |
| 130 x = 13; |
130 x = 13; |