test/map_tests.c

changeset 52
34f50d0bada4
parent 51
1c78cd19fb6b
child 53
e533c170bfb8
     1.1 --- a/test/map_tests.c	Fri Oct 05 14:06:40 2012 +0200
     1.2 +++ b/test/map_tests.c	Fri Oct 05 16:59:14 2012 +0200
     1.3 @@ -300,7 +300,7 @@
     1.4          ucx_map_cstr_put(map, keys[i], values[i]);
     1.5      }
     1.6  
     1.7 -    map = ucx_map_rehash(map);
     1.8 +    ucx_map_rehash(map);
     1.9  
    1.10      UCX_TEST_BEGIN
    1.11      UCX_TEST_ASSERT(map->size == 25, "new capacity shall be 2.5 * count");
    1.12 @@ -311,10 +311,8 @@
    1.13          UCX_TEST_ASSERT(strncmp(value, values[i], 6) == 0,
    1.14                  "new map contains incorrect values");
    1.15      }
    1.16 -    UcxMap *samemap = ucx_map_rehash(map);
    1.17 -    UCX_TEST_ASSERT(samemap == map,
    1.18 -            "subsequent rehashing call shall do nothing");
    1.19 -    UCX_TEST_ASSERT(samemap->size == 25,
    1.20 +    ucx_map_rehash(map);
    1.21 +    UCX_TEST_ASSERT(map->size == 25,
    1.22              "subsequent rehashing call shall not change size");
    1.23      UCX_TEST_END
    1.24  

mercurial