hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-12 11:41:05 +0200
committerhachem <im@hachem.wtf>2026-10-12 11:41:05 +0200
commit62636576bce8e8121a3d70f63547fae40a52f697 (patch)
tree077dfe4f04235cce63b7abb1b05bb539232ae74a /tests/test.h
parentc0f000ea166a24781fcdbf23c080b203cd9b8ed7 (diff)
chore: refactor
Diffstat (limited to 'tests/test.h')
-rw-r--r--tests/test.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test.h b/tests/test.h
deleted file mode 100644
index c5e2e73..0000000
--- a/tests/test.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-#include <stdio.h>
-
-struct TestContext
-{
- int checks;
- int failures;
-};
-
-#define check(context, condition) \
- do \
- { \
- (context)->checks += 1; \
- if (!(condition)) \
- { \
- (context)->failures += 1; \
- printf(" FAIL %s:%d: %s\n", __FILE__, __LINE__, #condition); \
- } \
- } \
- while (0)