tests/test_kv_list.c

changeset 1464
9a10af83cfab
parent 1429
6e0c3a8a914a
equal deleted inserted replaced
1463:e228b5bde7f6 1464:9a10af83cfab
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;

mercurial