From 1ef526c695df4b37aa184867fb5b62c93118aa02 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sun, 24 Mar 2024 10:00:19 +0200 Subject: Refactored configuration parsing to a separate file and added unit tests to it --- tests.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests.c') 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"); -- cgit v1.2.3