aboutsummaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2024-03-24 10:00:19 +0200
committerJoel Kronqvist <joelkronqvist@proton.me>2024-03-24 10:00:19 +0200
commit1ef526c695df4b37aa184867fb5b62c93118aa02 (patch)
treee223eda40193d584f55c9f11e8d511988d7e1136 /tests.c
parente26279107edf7012e6b9cd558aaa09a8f0ca4764 (diff)
downloadstdu-1ef526c695df4b37aa184867fb5b62c93118aa02.tar.gz
stdu-1ef526c695df4b37aa184867fb5b62c93118aa02.zip
Refactored configuration parsing to a separate file and added unit tests to it
Diffstat (limited to 'tests.c')
-rw-r--r--tests.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests.c b/tests.c
index 138a994..f4a047d 100644
--- a/tests.c
+++ b/tests.c
@@ -1,13 +1,21 @@
#include "minitest.h"
+#include "config-parser.c"
#include "intmath.c"
int tests_run = 0;
int tests_failed = 0;
+void intmath_tests();
+void main_tests();
+
int main() {
printf("[INFO] Running tests...\n\n");
+ printf("[INFO] Running main-tests...\n");
+ parsing_tests();
+ printf("\n");
+
printf("[INFO] Running intmath-tests...\n");
intmath_tests();
printf("\n");