diff options
Diffstat (limited to 'tests/test_hashmap.c')
-rw-r--r-- | tests/test_hashmap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_hashmap.c b/tests/test_hashmap.c index cf6f7a2..68b8d0c 100644 --- a/tests/test_hashmap.c +++ b/tests/test_hashmap.c @@ -1,7 +1,9 @@ #include "test.h" #include "hashmap.h" -int main() { +START_TESTS + +TEST(hashmap) { struct hashmap *hm = hashmap_new(); assert(hashmap_get(hm, "foo") == NULL, "expected NULL"); @@ -11,4 +13,6 @@ int main() { assert(strcmp(value, "bar") == 0, "expected %s, got %s", "bar", value); hashmap_free(hm); -}
\ No newline at end of file +} + +END_TESTS
\ No newline at end of file |