1.1 --- a/test/map_tests.c Fri May 25 17:39:27 2012 +0200 1.2 +++ b/test/map_tests.c Thu May 31 09:18:26 2012 +0200 1.3 @@ -69,6 +69,7 @@ 1.4 } 1.5 1.6 UCX_TEST_BEGIN(test_ucx_map_get) { 1.7 + // TODO: 1.8 UCX_TEST_END 1.9 } 1.10 1.11 @@ -79,24 +80,24 @@ 1.12 int v2 = 15; 1.13 int v3 = 7; 1.14 int v4 = 9; 1.15 - 1.16 + 1.17 ucx_map_cstr_put(map, "v1", &v1); 1.18 ucx_map_cstr_put(map, "v2", &v2); 1.19 ucx_map_cstr_put(map, "v3", &v3); 1.20 ucx_map_cstr_put(map, "v4", &v4); 1.21 - 1.22 + 1.23 UcxMapIterator i = ucx_map_iterator(map); 1.24 int check = 0; 1.25 int hit = 0; 1.26 - 1.27 + 1.28 UCX_MAP_FOREACH(int*, v, map, i) { 1.29 check += *v; 1.30 hit++; 1.31 } 1.32 - 1.33 + 1.34 UCX_TEST_ASSERT(hit == 4, "test1: wrong number of hits"); 1.35 UCX_TEST_ASSERT(check == v1+v2+v3+v4, "test1: wrong result"); 1.36 - 1.37 + 1.38 ucx_map_free(map); 1.39 1.40 map = ucx_map_new(1);