testing the tombstone-ing
This commit is contained in:
parent
21351fd2b4
commit
047babeb1b
1
main.cpp
1
main.cpp
@ -15,6 +15,7 @@ void test_basics(amap mapdo, void *map) {
|
|||||||
|
|
||||||
/* Delete / tombstone */
|
/* Delete / tombstone */
|
||||||
assert(NULL != mapdo(map, AMAP_SET, "meaning", NULL));
|
assert(NULL != mapdo(map, AMAP_SET, "meaning", NULL));
|
||||||
|
assert(NULL == (int *)mapdo(map, AMAP_GET, "meaning", NULL));
|
||||||
|
|
||||||
/* Check re-adding */
|
/* Check re-adding */
|
||||||
assert(NULL != mapdo(map, AMAP_SET, "meaning", &i));
|
assert(NULL != mapdo(map, AMAP_SET, "meaning", &i));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user