remove unnecessary code

Sun, 23 Oct 2022 16:40:53 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 23 Oct 2022 16:40:53 +0200
changeset 595
0da254bf23e6
parent 594
d90cfa6721f9
child 596
52fcaf3c9154

remove unnecessary code

test/test_map.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/test/test_map.cpp	Sun Oct 23 13:39:44 2022 +0200
     1.2 +++ b/test/test_map.cpp	Sun Oct 23 16:40:53 2022 +0200
     1.3 @@ -254,14 +254,7 @@
     1.4  TEST(CxHashMap, Clear) {
     1.5      CxTestingAllocator allocator;
     1.6      auto map = cxHashMapCreate(&allocator, 0);
     1.7 -    auto hmap = reinterpret_cast<struct cx_hash_map_s *>(map);
     1.8 -    EXPECT_GT(hmap->bucket_count, 0);
     1.9 -    cx_for_n(i, hmap->bucket_count) {
    1.10 -        EXPECT_EQ(hmap->buckets[i], nullptr);
    1.11 -    }
    1.12 -    EXPECT_EQ(map->size, 0);
    1.13 -    EXPECT_EQ(map->allocator, &allocator);
    1.14 -
    1.15 +    
    1.16      cxMapPut(map, cx_hash_key_str("key 1"), (void *) "val 1");
    1.17      cxMapPut(map, cx_hash_key_str("key 2"), (void *) "val 2");
    1.18      cxMapPut(map, cx_hash_key_str("key 3"), (void *) "val 3");

mercurial