aboutsummaryrefslogtreecommitdiffstats
path: root/unit/ck-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'unit/ck-test.c')
-rw-r--r--unit/ck-test.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/unit/ck-test.c b/unit/ck-test.c
index 42941f9..b907576 100644
--- a/unit/ck-test.c
+++ b/unit/ck-test.c
@@ -4,9 +4,12 @@
#include "cklist.h"
+/* total number of unit tests */
+#define TOTAL 1
+
#define CK_UNIT_TESTS \
X(ck_list_init, "Basic cklist test")
-// X(ck_list_add, "Add elements to ck list")
+ // X(ck_list_add, "Add elements to ck list")
void ck_list_init() {
cklist *ckl1 = list_make_new();
@@ -23,14 +26,14 @@ void ck_list_init() {
}
void ck_list_add() {
- printf("Test2\n");
}
int main() {
+ int count = 1;
#define X(TEST, DESC) \
- printf("=> %s\n", DESC); \
+ printf("[%d/%d] %s\n", count++, TOTAL, DESC); \
TEST(); \
- printf("Passed\n\n");
+ printf("=> Passed\n\n");
CK_UNIT_TESTS
#undef X
}