aboutsummaryrefslogtreecommitdiff
path: root/testing.h
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 11:59:06 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-21 11:59:23 +0200
commita378ff1b173f7a67272e574fb1a2c275ecb9661b (patch)
tree9ee34a7491c7c7bd66cf39096bc62185eaa4ed09 /testing.h
parent54db532879ed3f6d76463a3ab3f3895bd41c861c (diff)
test: rewrite tests
Diffstat (limited to 'testing.h')
-rw-r--r--testing.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing.h b/testing.h
index f27daf2..cb40294 100644
--- a/testing.h
+++ b/testing.h
@@ -1,4 +1,7 @@
+#include <stdio.h>
+
#define t_assert(fact) \
if (!(fact)) { \
+ fprintf(stderr, "Assertion failed: %s at %s:%d in %s()\n", #fact, __FILE__, __LINE__, __func__); \
return 1; \
}