--- a/tests/test_map.cpp Tue Mar 21 17:21:20 2023 +0100 +++ b/tests/test_map.cpp Tue Mar 28 19:13:33 2023 +0200 @@ -155,7 +155,7 @@ TEST(CxHashMap, BasicOperations) { // create the map CxTestingAllocator allocator; - auto map = cxHashMapCreateForPointers(&allocator, 8); + auto map = cxHashMapCreate(&allocator, CX_STORE_POINTERS, 8); // create a reference map std::unordered_map<std::string, std::string> refmap; @@ -199,7 +199,7 @@ TEST(CxHashMap, RemoveViaIterator) { CxTestingAllocator allocator; - auto map = cxHashMapCreateForPointers(&allocator, 4); + auto map = cxHashMapCreate(&allocator, CX_STORE_POINTERS, 4); cxMapPut(map, cx_hash_key_str("key 1"), (void *) "val 1"); cxMapPut(map, cx_hash_key_str("key 2"), (void *) "val 2"); @@ -228,7 +228,7 @@ TEST(CxHashMap, RehashNotRequired) { CxTestingAllocator allocator; - auto map = cxHashMapCreateForPointers(&allocator, 8); + auto map = cxHashMapCreate(&allocator, CX_STORE_POINTERS, 8); cxMapPut(map, cx_hash_key_str("key 1"), (void *) "val 1"); cxMapPut(map, cx_hash_key_str("key 2"), (void *) "val 2"); @@ -248,7 +248,7 @@ TEST(CxHashMap, Rehash) { CxTestingAllocator allocator; - auto map = cxHashMapCreateForPointers(&allocator, 8); + auto map = cxHashMapCreate(&allocator, CX_STORE_POINTERS, 8); cxMapPut(map, cx_hash_key_str("key 1"), (void *) "val 1"); cxMapPut(map, cx_hash_key_str("key 2"), (void *) "val 2"); @@ -277,7 +277,7 @@ TEST(CxHashMap, Clear) { CxTestingAllocator allocator; - auto map = cxHashMapCreateForPointers(&allocator, 0); + auto map = cxHashMapCreate(&allocator, CX_STORE_POINTERS, 0); cxMapPut(map, cx_hash_key_str("key 1"), (void *) "val 1"); cxMapPut(map, cx_hash_key_str("key 2"), (void *) "val 2");