]> git.seodisparate.com - SimpleArchiver/commitdiff
Revert "Minor additions to unit test of data structures"
authorStephen Seo <seo.disparate@gmail.com>
Fri, 28 Jun 2024 08:40:29 +0000 (17:40 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 28 Jun 2024 08:40:29 +0000 (17:40 +0900)
This reverts commit f1bab48fb5a296c55c2ba092474c9f351fcde045.

Unnecessary checks were added that were already checked by the preceding
for statement.

src/data_structures/test.c

index 56f872a34efb341362151f62e63937184f1b1f8c..721232e7e0a33965d1a92ac9e5f665d404580b1c 100644 (file)
@@ -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);
   }