diff -r edb9f875b7f9 -r b2bc48c2b251 tests/test_list.c --- a/tests/test_list.c Fri Apr 12 21:48:12 2024 +0200 +++ b/tests/test_list.c Thu May 23 15:05:24 2024 +0200 @@ -1207,6 +1207,8 @@ int *testdata = int_test_data_added_to_list(list, isptrlist, len); CxIterator iter = cxListIterator(list); + CX_TEST_ASSERT(iter.elem_size == list->item_size); + CX_TEST_ASSERT(iter.elem_count == list->size); size_t i = 0; cx_foreach(int*, x, iter) { CX_TEST_ASSERT(i == iter.index); @@ -1223,6 +1225,8 @@ CX_TEST_ASSERT(i == 0); i = len / 2; CxMutIterator mut_iter = cxListMutIteratorAt(list, i); + CX_TEST_ASSERT(mut_iter.elem_size == list->item_size); + CX_TEST_ASSERT(mut_iter.elem_count == list->size); size_t j = 0; cx_foreach(int*, x, mut_iter) { CX_TEST_ASSERT(mut_iter.index == len / 2 + j / 2);