diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 12:33:55 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 12:33:55 +0100 |
commit | 83eee4d23f9da9e72238dd01d43b350ed5bc04f1 (patch) | |
tree | 46b92c58b7e37977cd06da09b32dbf626f5b19df /tests/test_hashmap.c | |
parent | cd70ca266bb212d6a32d2dd808c7708bb7be6f1f (diff) | |
download | unja-83eee4d23f9da9e72238dd01d43b350ed5bc04f1.tar.gz unja-83eee4d23f9da9e72238dd01d43b350ed5bc04f1.zip |
add some more test helpers
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 |