aboutsummaryrefslogtreecommitdiff
path: root/base_test.c
blob: 7a0c77b9b5bf4c96f2e37bb26541948b67bb2276 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13

#define test(func)                                                             \
    switch (func()) {                                                          \
    case 0:                                                                    \
        printf("✅ %s\n", #func);                                              \
        success++;                                                             \
        break;                                                                 \
    default:                                                                   \
        failures++;                                                            \
        printf("🚫 %s\n", #func);                                              \
    }

int success;
int failures;