aboutsummaryrefslogtreecommitdiffstats
path: root/unit/ck-test.c
blob: 01156f12173e600796066b9229be60b2d5b62510 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}