aboutsummaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests.c')
-rw-r--r--tests.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests.c b/tests.c
new file mode 100644
index 0000000..138a994
--- /dev/null
+++ b/tests.c
@@ -0,0 +1,18 @@
+
+#include "minitest.h"
+#include "intmath.c"
+
+int tests_run = 0;
+int tests_failed = 0;
+
+int main() {
+ printf("[INFO] Running tests...\n\n");
+
+ printf("[INFO] Running intmath-tests...\n");
+ intmath_tests();
+ printf("\n");
+
+ mt_test_report();
+
+ return tests_failed != 0;
+}