diff options
| author | Mosder <git@mosder.eu> | 2026-09-12 19:05:36 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-12 19:05:36 +0200 |
| commit | 419bd1326e310babbc77cd4974263c4b90eb1388 (patch) | |
| tree | aeba3248820ff635703930ee69e448cc5600335c /tests/ds/array_tests.c | |
| parent | d5af4d7bf8f654539f504ed79ca7ed2e4f85fda7 (diff) | |
feat: added deleting from hashmap and changed type of tests to be nicer
Diffstat (limited to 'tests/ds/array_tests.c')
| -rw-r--r-- | tests/ds/array_tests.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ds/array_tests.c b/tests/ds/array_tests.c index b292407..c5d7c4d 100644 --- a/tests/ds/array_tests.c +++ b/tests/ds/array_tests.c @@ -4,7 +4,7 @@ #include <string.h> -Test cap_test() { +TEST(cap_test) { float *arr = NULL; test_assert(arr_cap(arr) == 0, "uninitialized array has capacity different than 0"); @@ -24,7 +24,7 @@ Test cap_test() { arr_free(arr); } -Test len_test() { +TEST(len_test) { char *arr = NULL; test_assert(arr_len(arr) == 0, "uninitialized array has length different than 0"); @@ -39,7 +39,7 @@ Test len_test() { arr_free(arr); } -Test adding_items() { +TEST(adding_items) { int *arr = NULL; // {3} @@ -84,7 +84,7 @@ Test adding_items() { arr_free(arr); } -Test getting_items() { +TEST(getting_items) { struct test { int f1; char f2; @@ -121,7 +121,7 @@ Test getting_items() { arr_free(arr); } -Test deleting_items() { +TEST(deleting_items) { int *arr = NULL; int items[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; arr_append_n(arr, items, 9); @@ -152,7 +152,7 @@ Test deleting_items() { arr_free(arr); } -Test arr_concat_test() { +TEST(arr_concat_test) { unsigned long *arr1 = NULL; unsigned long *arr2 = NULL; |
