--- a/tests/test_list.c Fri Oct 24 21:15:14 2025 +0200 +++ b/tests/test_list.c Sat Oct 25 21:12:59 2025 +0200 @@ -2574,8 +2574,7 @@ int expected_data[12] = array_init(1, 2, 3, 4, 1, 3, 5, 7, 9, 11, 13, 15); int c = 0; test_clone_func_max_clones = 100; // no limit - size_t cloned = cxListClone(target, source, test_clone_func, testing_alloc, &c); - CX_TEST_ASSERT(cloned == 8); + CX_TEST_ASSERT(0 == cxListClone(target, source, test_clone_func, testing_alloc, &c)); CX_TEST_ASSERT(c == 8); CX_TEST_ASSERT(cxListSize(target) == 12); CX_TEST_ASSERT(cxListSize(source) == 8); @@ -2623,8 +2622,7 @@ int expected_data[9] = array_init(1, 2, 3, 4, 1, 3, 5, 7, 9); int c = 0; test_clone_func_max_clones = 5; - size_t cloned = cxListClone(target, source, test_clone_func, testing_alloc, &c); - CX_TEST_ASSERT(cloned == 5); + CX_TEST_ASSERT(0 != cxListClone(target, source, test_clone_func, testing_alloc, &c)); CX_TEST_ASSERT(c == 5); CX_TEST_ASSERT(cxListSize(target) == 9); CX_TEST_ASSERT(cxListSize(source) == 8);