aboutsummaryrefslogtreecommitdiff
path: root/mons_math/tests/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'mons_math/tests/test.h')
-rw-r--r--mons_math/tests/test.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mons_math/tests/test.h b/mons_math/tests/test.h
new file mode 100644
index 0000000..ce94b2e
--- /dev/null
+++ b/mons_math/tests/test.h
@@ -0,0 +1,14 @@
+#ifndef TEST_H
+#define TEST_H
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#define ASSERT(cond) {\
+ if (!(cond)) {\
+ fprintf(stderr, "Assertion Failed @ %s:%d (%s): %s", __func__, __LINE__, __FILE__, #cond);\
+ exit(EXIT_FAILURE);\
+ }\
+}
+
+#endif