From 4da7be39827ea5888ef9c97b1aadf61b0d76347c Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 7 Feb 2025 11:27:18 -0500 Subject: initial commit (lol) --- mons_math/tests/test.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 mons_math/tests/test.h (limited to 'mons_math/tests/test.h') 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 +#include + +#define ASSERT(cond) {\ + if (!(cond)) {\ + fprintf(stderr, "Assertion Failed @ %s:%d (%s): %s", __func__, __LINE__, __FILE__, #cond);\ + exit(EXIT_FAILURE);\ + }\ +} + +#endif -- cgit v1.2.3