diff -r fe0d69d72bcd -r 35bcb3216c0d tests/test_hash_map.c --- a/tests/test_hash_map.c Thu May 23 20:29:28 2024 +0200 +++ b/tests/test_hash_map.c Thu May 23 20:31:37 2024 +0200 @@ -42,7 +42,7 @@ for(size_t i = 0 ; i < hmap->bucket_count ; i++) { CX_TEST_ASSERT(hmap->buckets[i] == NULL); } - CX_TEST_ASSERT(map->base.item_size == 1); + CX_TEST_ASSERT(map->base.elem_size == 1); CX_TEST_ASSERT(map->base.size == 0); CX_TEST_ASSERT(map->base.allocator == allocator); CX_TEST_ASSERT(!map->base.store_pointer); @@ -52,7 +52,7 @@ CX_TEST_ASSERT(map->base.destructor_data == NULL); cxMapStorePointers(map); CX_TEST_ASSERT(map->base.store_pointer); - CX_TEST_ASSERT(map->base.item_size == sizeof(void *)); + CX_TEST_ASSERT(map->base.elem_size == sizeof(void *)); cxMapStoreObjects(map); CX_TEST_ASSERT(!map->base.store_pointer); @@ -76,7 +76,7 @@ CX_TEST_ASSERT(map->base.size == 0); CX_TEST_ASSERT(map->base.allocator == allocator); CX_TEST_ASSERT(map->base.store_pointer); - CX_TEST_ASSERT(map->base.item_size == sizeof(void *)); + CX_TEST_ASSERT(map->base.elem_size == sizeof(void *)); cxMapDestroy(map); CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc)); @@ -566,7 +566,7 @@ // by using that the values in our test data are unique strings // we can re-use a similar approach as above CxIterator valiter = cxMapIteratorValues(map); - CX_TEST_ASSERT(valiter.elem_size == map->base.item_size); + CX_TEST_ASSERT(valiter.elem_size == map->base.elem_size); CX_TEST_ASSERT(valiter.elem_count == map->base.size); char const** values = calloc(map->base.size, sizeof(char const*)); cx_foreach(char const*, elem, valiter) {