diff options
Diffstat (limited to 'unit')
-rw-r--r-- | unit/ck-test.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/unit/ck-test.c b/unit/ck-test.c new file mode 100644 index 0000000..01156f1 --- /dev/null +++ b/unit/ck-test.c @@ -0,0 +1,24 @@ +#include "cklist.h" +#include "stdio.h" + +#define CK_UNIT_TESTS \ + X(ck_list_init, "Initialize ck list") \ + X(ck_list_add, "Add elements to ck list") + +void ck_list_init() { + printf("Test1\n"); +} + +void ck_list_add() { + printf("Test2\n"); +} + +int main() { +#define X(TEST, DESC) \ + printf("--[%s]--\n", DESC); \ + TEST(); \ + printf("--[Passed]--\n\n"); + CK_UNIT_TESTS +#undef X +} + |