tests/test_hash_map.c

changeset 1111
78eeeb950883
parent 994
3603bdf4a78b
child 1114
ad5eeb256242
equal deleted inserted replaced
1110:a0e9be7ed131 1111:78eeeb950883
48 CX_TEST_ASSERT(!map->collection.store_pointer); 48 CX_TEST_ASSERT(!map->collection.store_pointer);
49 CX_TEST_ASSERT(map->collection.cmpfunc == NULL); 49 CX_TEST_ASSERT(map->collection.cmpfunc == NULL);
50 CX_TEST_ASSERT(map->collection.simple_destructor == NULL); 50 CX_TEST_ASSERT(map->collection.simple_destructor == NULL);
51 CX_TEST_ASSERT(map->collection.advanced_destructor == NULL); 51 CX_TEST_ASSERT(map->collection.advanced_destructor == NULL);
52 CX_TEST_ASSERT(map->collection.destructor_data == NULL); 52 CX_TEST_ASSERT(map->collection.destructor_data == NULL);
53 cxMapStorePointers(map);
54 CX_TEST_ASSERT(map->collection.store_pointer);
55 CX_TEST_ASSERT(map->collection.elem_size == sizeof(void *));
56 cxMapStoreObjects(map);
57 CX_TEST_ASSERT(!map->collection.store_pointer);
58 53
59 cxMapFree(map); 54 cxMapFree(map);
60 CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc)); 55 CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc));
61 } 56 }
62 cx_testing_allocator_destroy(&talloc); 57 cx_testing_allocator_destroy(&talloc);

mercurial