test/map_tests.c

changeset 41
7f90a03e186e
parent 40
583718dd4cf3
child 42
ff3dd1ee7dee
equal deleted inserted replaced
40:583718dd4cf3 41:7f90a03e186e
109 109
110 UcxMapIterator i = ucx_map_iterator(map); 110 UcxMapIterator i = ucx_map_iterator(map);
111 int check = 0; 111 int check = 0;
112 int hit = 0; 112 int hit = 0;
113 113
114 UCX_MAP_FOREACH(int*, v, map, i) { 114 int* v;
115 UCX_MAP_FOREACH(v, i) {
115 check += *v; 116 check += *v;
116 hit++; 117 hit++;
117 } 118 }
118 119
119 UCX_TEST_ASSERT(hit == 4, "test1: wrong number of hits"); 120 UCX_TEST_ASSERT(hit == 4, "test1: wrong number of hits");

mercurial