diff -r b2bc48c2b251 -r adb4e0737c33 tests/test_iterator.c --- a/tests/test_iterator.c Thu May 23 15:05:24 2024 +0200 +++ b/tests/test_iterator.c Thu May 23 18:21:08 2024 +0200 @@ -35,7 +35,7 @@ unsigned array[size]; for (unsigned i = 0 ; i < size ; i++) array[i] = i; - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, false); + CxIterator iter = cxIterator(array, sizeof(unsigned), size); CX_TEST_DO { CX_TEST_ASSERT(iter.index == 0); CX_TEST_ASSERT(iter.elem_size == sizeof(unsigned)); @@ -47,7 +47,7 @@ } CX_TEST(test_iterator_create_null) { - CxMutIterator iter = cxIterator(NULL, sizeof(unsigned), 47, false); + CxIterator iter = cxIterator(NULL, sizeof(unsigned), 47); CX_TEST_DO { CX_TEST_ASSERT(iter.index == 0); CX_TEST_ASSERT(iter.elem_size == sizeof(unsigned)); @@ -63,7 +63,7 @@ unsigned array[size]; for (unsigned i = 0 ; i < size ; i++) array[i] = i; - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, false); + CxIterator iter = cxIterator(array, sizeof(unsigned), size); CX_TEST_DO { unsigned expected = 0; cx_foreach(unsigned *, e, iter) { @@ -96,7 +96,7 @@ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 }; - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, true); + CxMutIterator iter = cxMutIterator(array, sizeof(unsigned), size, true); CX_TEST_DO { unsigned expected = 0; cx_foreach(unsigned *, e, iter) { @@ -141,7 +141,7 @@ 15, 6, 14, 7, 13, 8, 12, 9, 11, 10 }; - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, false); + CxMutIterator iter = cxMutIterator(array, sizeof(unsigned), size, false); CX_TEST_DO { unsigned expected = 0; cx_foreach(unsigned *, e, iter) {