aboutsummaryrefslogtreecommitdiff
path: root/test/include/test.h
diff options
context:
space:
mode:
authorc2024-01-27 22:58:23 -0500
committerc2024-01-27 22:58:23 -0500
commit87e0d4b3d23a7eb38f0e196eac333c318fef27ea (patch)
treece3b2cee903b7022e57a558f4725fed2b58e2813 /test/include/test.h
parentf48c3a6cb320c897ca7477af17f8e5eb7447fd72 (diff)
Added string parsing, and tests for more blocks.
cool bug on window rn
Diffstat (limited to 'test/include/test.h')
-rw-r--r--test/include/test.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/include/test.h b/test/include/test.h
index 02c3d18..3193c52 100644
--- a/test/include/test.h
+++ b/test/include/test.h
@@ -3,6 +3,10 @@
#include "../../src/include/util.h"
+/*
+ This is probably how it's supposed to work. In what other cases would you
+ need `extern`?
+*/
extern unsigned int TESTS_RUN;
extern unsigned int TESTS_PASSED;
@@ -11,8 +15,8 @@ extern unsigned int TESTS_PASSED;
#define ASSERT(EXPR) \
TESTS_RUN++; \
(EXPR && ++TESTS_PASSED) ? \
- log_inf("%s:%s:%d: Assertion passed!", __func__, __FILE__, __LINE__) : \
- log_err("%s:%s:%d: Assertion failed:\n\t%s", __func__, __FILE__, __LINE__, #EXPR);
+ log_inf("%s:%s:%d: Assertion passed!", __FILE__, __func__, __LINE__) : \
+ log_err("%s:%s:%d: Assertion failed:\n\t%s", __FILE__, __func__, __LINE__, #EXPR);
#define TEST_REPORT \
(TESTS_RUN == TESTS_PASSED) ? \