blob: f05cd023ecc6ca7249c2884fd99367e5bac53bb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "test.h"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_RESET "\x1b[0m"
int main(int argc, char **argv) {
(void)argc;
(void)argv;
for (size_t i = 0; i < test_count; i++) {
fprintf(stderr, "Running test: %s...\n", tests[i].name);
tests[i].fn();
fprintf(stderr, ANSI_COLOR_GREEN " OK" ANSI_COLOR_RESET "\n");
}
return 0;
}
|