aboutsummaryrefslogtreecommitdiff
path: root/test/include
diff options
context:
space:
mode:
authorc2024-01-22 13:30:47 -0500
committerc2024-01-22 13:30:47 -0500
commit0ff1d40842390da36908c7ffce62f2cf33b173b9 (patch)
tree4536d78f68fe295b7b3dd1dee1609292b083ab18 /test/include
parentd3ed2864afd3d470a39c7ef2ec1a53deaae18d14 (diff)
Not sure.
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) ? \