From 047babeb1b1e4258a1f78c25d3a355b1f6c8e17c Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Thu, 10 Oct 2024 16:38:15 +0200 Subject: [PATCH] testing the tombstone-ing --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index c3bc40b..ca6a6be 100644 --- a/main.cpp +++ b/main.cpp @@ -15,6 +15,7 @@ void test_basics(amap mapdo, void *map) { /* Delete / tombstone */ assert(NULL != mapdo(map, AMAP_SET, "meaning", NULL)); + assert(NULL == (int *)mapdo(map, AMAP_GET, "meaning", NULL)); /* Check re-adding */ assert(NULL != mapdo(map, AMAP_SET, "meaning", &i));