| 1165 } |
1165 } |
| 1166 cxMapFree(s1); |
1166 cxMapFree(s1); |
| 1167 cxMapFree(s2); |
1167 cxMapFree(s2); |
| 1168 } |
1168 } |
| 1169 |
1169 |
| 1170 CX_TEST(test_hash_map_simple_clones) { |
1170 CX_TEST(test_hash_map_shallow_clones) { |
| 1171 int v = 47; // the value does not matter in this test |
1171 int v = 47; // the value does not matter in this test |
| 1172 CxMap *a = cxHashMapCreate(NULL, sizeof(int), 0); |
1172 CxMap *a = cxHashMapCreate(NULL, sizeof(int), 0); |
| 1173 cxMapPut(a, "k1", &v); |
1173 cxMapPut(a, "k1", &v); |
| 1174 cxMapPut(a, "k2", &v); |
1174 cxMapPut(a, "k2", &v); |
| 1175 cxMapPut(a, "k3", &v); |
1175 cxMapPut(a, "k3", &v); |
| 1690 cx_test_register(suite, test_hash_map_intersection_non_empty_target); |
1690 cx_test_register(suite, test_hash_map_intersection_non_empty_target); |
| 1691 cx_test_register(suite, test_hash_map_list_intersection_non_empty_target); |
1691 cx_test_register(suite, test_hash_map_list_intersection_non_empty_target); |
| 1692 cx_test_register(suite, test_hash_map_union); |
1692 cx_test_register(suite, test_hash_map_union); |
| 1693 cx_test_register(suite, test_hash_map_union_ptr); |
1693 cx_test_register(suite, test_hash_map_union_ptr); |
| 1694 cx_test_register(suite, test_hash_map_union_alloc_fail); |
1694 cx_test_register(suite, test_hash_map_union_alloc_fail); |
| 1695 cx_test_register(suite, test_hash_map_simple_clones); |
1695 cx_test_register(suite, test_hash_map_shallow_clones); |
| 1696 cx_test_register(suite, test_hash_map_compare); |
1696 cx_test_register(suite, test_hash_map_compare); |
| 1697 cx_test_register(suite, test_empty_map_no_ops); |
1697 cx_test_register(suite, test_empty_map_no_ops); |
| 1698 cx_test_register(suite, test_empty_map_size); |
1698 cx_test_register(suite, test_empty_map_size); |
| 1699 cx_test_register(suite, test_empty_map_get); |
1699 cx_test_register(suite, test_empty_map_get); |
| 1700 cx_test_register(suite, test_empty_map_iterator); |
1700 cx_test_register(suite, test_empty_map_iterator); |