test/test_list.c

changeset 497
b182a8b8a1af
parent 496
1a07e24801a9
child 498
435c9965b2dd
     1.1 --- a/test/test_list.c	Sat Jan 22 19:04:32 2022 +0100
     1.2 +++ b/test/test_list.c	Sat Jan 22 19:10:04 2022 +0100
     1.3 @@ -762,10 +762,10 @@
     1.4  void test_hl_linked_list_iterator_impl(CxList list) {
     1.5      int i = 0;
     1.6      CxIterator iter = cxListBegin(list);
     1.7 -    cx_foreach(int, x, iter) {
     1.8 +    cx_foreach(int*, x, iter) {
     1.9          CU_ASSERT_EQUAL(iter.index, (size_t) (i + 1) / 2)
    1.10          CU_ASSERT_EQUAL(*x, i)
    1.11 -        if (i % 2 == 1) iter.remove = true;
    1.12 +        if (*x % 2 == 1) iter.remove = true;
    1.13          i++;
    1.14      }
    1.15      CU_ASSERT_EQUAL(i, 10)

mercurial