aboutsummaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2024-03-23 17:56:49 +0200
committerJoel Kronqvist <joelkronqvist@proton.me>2024-03-23 18:00:51 +0200
commite26279107edf7012e6b9cd558aaa09a8f0ca4764 (patch)
tree2bcd2eb3c6c2ade2e85c9f52ca1fc41d3c720811 /tests.c
downloadstdu-e26279107edf7012e6b9cd558aaa09a8f0ca4764.tar.gz
stdu-e26279107edf7012e6b9cd558aaa09a8f0ca4764.zip
Initial commit
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;
+}