diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-02-14 19:01:21 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-02-14 19:01:21 +0100 |
| commit | 54db532879ed3f6d76463a3ab3f3895bd41c861c (patch) | |
| tree | 0b9f52e01f612d0ac26003df96094dac2287bf5f /base_test.c | |
| parent | 03632f51152e5e3b6bb74c29987709fbe97a9a69 (diff) | |
feat(test): Add test runner (debug is ok, 2 failures in release)
Diffstat (limited to 'base_test.c')
| -rw-r--r-- | base_test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/base_test.c b/base_test.c new file mode 100644 index 0000000..c19806f --- /dev/null +++ b/base_test.c @@ -0,0 +1,15 @@ +#include <stdio.h> + +#define test(func) \ + switch (func()) { \ + case 0: \ + printf("✅ %s\n", #func); \ + success++; \ + break; \ + default: \ + failures++; \ + printf("🚫 %s\n", #func); \ + } + +int success; +int failures; |
