aboutsummaryrefslogtreecommitdiff
path: root/test/include
diff options
context:
space:
mode:
Diffstat (limited to 'test/include')
-rw-r--r--test/include/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/include/test.h b/test/include/test.h
index 9a2aa5a..c5fd97e 100644
--- a/test/include/test.h
+++ b/test/include/test.h
@@ -6,6 +6,8 @@
extern unsigned int TESTS_RUN;
extern unsigned int TESTS_PASSED;
+#define TEST_INIT unsigned int TESTS_RUN = 0, TESTS_PASSED = 0;
+
#define ASSERT(EXPR) \
TESTS_RUN++; \
(EXPR && ++TESTS_PASSED) ? \