diff options
author | 2025-02-07 11:27:18 -0500 | |
---|---|---|
committer | 2025-02-07 11:27:18 -0500 | |
commit | 4da7be39827ea5888ef9c97b1aadf61b0d76347c (patch) | |
tree | 15d0ff8f8bcb0e871efb1b2e65c2bc8d07b17565 /mons_math/tests/test.h |
initial commit (lol)
Diffstat (limited to 'mons_math/tests/test.h')
-rw-r--r-- | mons_math/tests/test.h | 14 |
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 |