1.1 --- a/tests/test_iterator.c Thu May 23 15:05:24 2024 +0200 1.2 +++ b/tests/test_iterator.c Thu May 23 18:21:08 2024 +0200 1.3 @@ -35,7 +35,7 @@ 1.4 unsigned array[size]; 1.5 for (unsigned i = 0 ; i < size ; i++) array[i] = i; 1.6 1.7 - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, false); 1.8 + CxIterator iter = cxIterator(array, sizeof(unsigned), size); 1.9 CX_TEST_DO { 1.10 CX_TEST_ASSERT(iter.index == 0); 1.11 CX_TEST_ASSERT(iter.elem_size == sizeof(unsigned)); 1.12 @@ -47,7 +47,7 @@ 1.13 } 1.14 1.15 CX_TEST(test_iterator_create_null) { 1.16 - CxMutIterator iter = cxIterator(NULL, sizeof(unsigned), 47, false); 1.17 + CxIterator iter = cxIterator(NULL, sizeof(unsigned), 47); 1.18 CX_TEST_DO { 1.19 CX_TEST_ASSERT(iter.index == 0); 1.20 CX_TEST_ASSERT(iter.elem_size == sizeof(unsigned)); 1.21 @@ -63,7 +63,7 @@ 1.22 unsigned array[size]; 1.23 for (unsigned i = 0 ; i < size ; i++) array[i] = i; 1.24 1.25 - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, false); 1.26 + CxIterator iter = cxIterator(array, sizeof(unsigned), size); 1.27 CX_TEST_DO { 1.28 unsigned expected = 0; 1.29 cx_foreach(unsigned *, e, iter) { 1.30 @@ -96,7 +96,7 @@ 1.31 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 1.32 }; 1.33 1.34 - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, true); 1.35 + CxMutIterator iter = cxMutIterator(array, sizeof(unsigned), size, true); 1.36 CX_TEST_DO { 1.37 unsigned expected = 0; 1.38 cx_foreach(unsigned *, e, iter) { 1.39 @@ -141,7 +141,7 @@ 1.40 15, 6, 14, 7, 13, 8, 12, 9, 11, 10 1.41 }; 1.42 1.43 - CxMutIterator iter = cxIterator(array, sizeof(unsigned), size, false); 1.44 + CxMutIterator iter = cxMutIterator(array, sizeof(unsigned), size, false); 1.45 CX_TEST_DO { 1.46 unsigned expected = 0; 1.47 cx_foreach(unsigned *, e, iter) {