diff options
| author | Mosder <xmosder12@gmail.com> | 2026-08-18 19:12:39 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-08-18 19:12:39 +0200 |
| commit | 3d63835dc40edc6143538fb78bbc5f3cb888e6f5 (patch) | |
| tree | e1481a2275437f45ce59ff0717a864407ffdfa19 /tests | |
| parent | 6af63e218750d58ad1a87643890cb49c2352c666 (diff) | |
feat: added basic templates for hashmap implementation
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ds/hashmap_tests.c | 8 | ||||
| -rw-r--r-- | tests/ds/hashmap_tests.h | 3 | ||||
| -rw-r--r-- | tests/tests.c | 2 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/ds/hashmap_tests.c b/tests/ds/hashmap_tests.c new file mode 100644 index 0000000..4e9acd7 --- /dev/null +++ b/tests/ds/hashmap_tests.c @@ -0,0 +1,8 @@ +#include "hashmap_tests.h" +#define MOS_HM_INIT_CAP 8 +#include "moslib/ds/hashmap.h" + +void ds_hashmap_tests(Tester *tester) { + TestGroup *group = add_test_group(tester, "moslib/ds/hashmap.h"); + (void)group; +} diff --git a/tests/ds/hashmap_tests.h b/tests/ds/hashmap_tests.h new file mode 100644 index 0000000..1efcbb7 --- /dev/null +++ b/tests/ds/hashmap_tests.h @@ -0,0 +1,3 @@ +#include <moslib/tester.h> + +extern void ds_hashmap_tests(Tester *tester); diff --git a/tests/tests.c b/tests/tests.c index 378daf6..d7ce15b 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -1,6 +1,7 @@ #include <moslib/tester.h> #include "ds/array_tests.h" +#include "ds/hashmap_tests.h" #include "mem/alloc_tests.h" #include "string_tests.h" @@ -10,6 +11,7 @@ int main(void) { mem_alloc_tests(tester); ds_array_tests(tester); string_tests(tester); + ds_hashmap_tests(tester); run_tests(tester); free_tester(tester); |
