--- a/tests/test_hash_map.c Fri Oct 24 21:15:14 2025 +0200 +++ b/tests/test_hash_map.c Sat Oct 25 21:12:59 2025 +0200 @@ -539,8 +539,7 @@ CX_TEST_DO { int c = 4; test_hash_map_clone_func_max_clones = 100; // no limit - size_t cloned = cxMapClone(dst, src, test_hash_map_clone_func, NULL, &c); - CX_TEST_ASSERT(cloned == 3); + CX_TEST_ASSERT(0 == cxMapClone(dst, src, test_hash_map_clone_func, NULL, &c)); CX_TEST_ASSERT(cxMapSize(dst) == 5); CX_TEST_ASSERT(*((int*)cxMapGet(dst, "k1")) == 1); CX_TEST_ASSERT(*((int*)cxMapGet(dst, "k2")) == 13); @@ -570,8 +569,7 @@ CX_TEST_DO { int c = 4; test_hash_map_clone_func_max_clones = 2; - size_t cloned = cxMapClone(dst, src, test_hash_map_clone_func, NULL, &c); - CX_TEST_ASSERT(cloned == 2); + CX_TEST_ASSERT(0 != cxMapClone(dst, src, test_hash_map_clone_func, NULL, &c)); CX_TEST_ASSERT(cxMapSize(dst) == 4); CX_TEST_ASSERT(*((int*)cxMapGet(dst, "k1")) == 1); CX_TEST_ASSERT(*((int*)cxMapGet(dst, "k2")) == 13); @@ -608,8 +606,7 @@ CX_TEST_DO { int c = 4; test_hash_map_clone_func_max_clones = 100; // no limit - size_t cloned = cxMapClone(dst, src, test_hash_map_clone_func, allocator, &c); - CX_TEST_ASSERT(cloned == 3); + CX_TEST_ASSERT(0 == cxMapClone(dst, src, test_hash_map_clone_func, allocator, &c)); CX_TEST_ASSERT(cxMapSize(dst) == 5); CX_TEST_ASSERT(*((int*)cxMapGet(dst, "k1")) == 1); CX_TEST_ASSERT(*((int*)cxMapGet(dst, "k2")) == 13);