From 54db532879ed3f6d76463a3ab3f3895bd41c861c Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 14 Feb 2025 19:01:21 +0100 Subject: feat(test): Add test runner (debug is ok, 2 failures in release) --- base_test.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 base_test.c (limited to 'base_test.c') 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 + +#define test(func) \ + switch (func()) { \ + case 0: \ + printf("✅ %s\n", #func); \ + success++; \ + break; \ + default: \ + failures++; \ + printf("🚫 %s\n", #func); \ + } + +int success; +int failures; -- cgit v1.3