hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/tests/test.h
diff options
context:
space:
mode:
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)