--- a/test/test_map.cpp Sun Oct 23 13:39:44 2022 +0200 +++ b/test/test_map.cpp Sun Oct 23 16:40:53 2022 +0200 @@ -254,14 +254,7 @@ TEST(CxHashMap, Clear) { CxTestingAllocator allocator; auto map = cxHashMapCreate(&allocator, 0); - auto hmap = reinterpret_cast<struct cx_hash_map_s *>(map); - EXPECT_GT(hmap->bucket_count, 0); - cx_for_n(i, hmap->bucket_count) { - EXPECT_EQ(hmap->buckets[i], nullptr); - } - EXPECT_EQ(map->size, 0); - EXPECT_EQ(map->allocator, &allocator); - + cxMapPut(map, cx_hash_key_str("key 1"), (void *) "val 1"); cxMapPut(map, cx_hash_key_str("key 2"), (void *) "val 2"); cxMapPut(map, cx_hash_key_str("key 3"), (void *) "val 3");