diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 11:59:06 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-21 11:59:23 +0200 |
| commit | a378ff1b173f7a67272e574fb1a2c275ecb9661b (patch) | |
| tree | 9ee34a7491c7c7bd66cf39096bc62185eaa4ed09 /testing.h | |
| parent | 54db532879ed3f6d76463a3ab3f3895bd41c861c (diff) | |
test: rewrite tests
Diffstat (limited to 'testing.h')
| -rw-r--r-- | testing.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; \ } |
