]> git.seodisparate.com - SimpleArchiver/commitdiff
Minor additions to unit test of data structures
authorStephen Seo <seo.disparate@gmail.com>
Fri, 28 Jun 2024 08:38:43 +0000 (17:38 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 28 Jun 2024 08:38:43 +0000 (17:38 +0900)
src/data_structures/test.c

index 721232e7e0a33965d1a92ac9e5f665d404580b1c..56f872a34efb341362151f62e63937184f1b1f8c 100644 (file)
@@ -148,6 +148,13 @@ int main(void) {
       }
     }
 
+    key = 5;
+    CHECK_TRUE(simple_archiver_hash_map_get(hash_map, &key, sizeof(int)) == NULL);
+    key = 10;
+    CHECK_TRUE(simple_archiver_hash_map_get(hash_map, &key, sizeof(int)) != NULL);
+    key = 15;
+    CHECK_TRUE(simple_archiver_hash_map_get(hash_map, &key, sizeof(int)) == NULL);
+
     simple_archiver_hash_map_free(&hash_map);
   }