From: Stephen Seo Date: Fri, 28 Jun 2024 08:40:29 +0000 (+0900) Subject: Revert "Minor additions to unit test of data structures" X-Git-Tag: 1.0~103 X-Git-Url: https://git.seodisparate.com/gitweb?a=commitdiff_plain;h=d6878b0f1d18e361c54fce7195b56de050cd8785;p=SimpleArchiver Revert "Minor additions to unit test of data structures" This reverts commit f1bab48fb5a296c55c2ba092474c9f351fcde045. Unnecessary checks were added that were already checked by the preceding for statement. --- diff --git a/src/data_structures/test.c b/src/data_structures/test.c index 56f872a..721232e 100644 --- a/src/data_structures/test.c +++ b/src/data_structures/test.c @@ -148,13 +148,6 @@ 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); }