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); |