From f1bab48fb5a296c55c2ba092474c9f351fcde045 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 28 Jun 2024 17:38:43 +0900 Subject: [PATCH] Minor additions to unit test of data structures --- src/data_structures/test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/data_structures/test.c b/src/data_structures/test.c index 721232e..56f872a 100644 --- a/src/data_structures/test.c +++ b/src/data_structures/test.c @@ -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); }