Minor additions to unit test of data structures

This commit is contained in:
Stephen Seo 2024-06-28 17:38:43 +09:00
parent 4d260e4a7b
commit f1bab48fb5

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