diff options
author | Joel Kronqvist <joelkronqvist@proton.me> | 2024-03-24 10:00:19 +0200 |
---|---|---|
committer | Joel Kronqvist <joelkronqvist@proton.me> | 2024-03-24 10:00:19 +0200 |
commit | 1ef526c695df4b37aa184867fb5b62c93118aa02 (patch) | |
tree | e223eda40193d584f55c9f11e8d511988d7e1136 /tests.c | |
parent | e26279107edf7012e6b9cd558aaa09a8f0ca4764 (diff) | |
download | stdu-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"); |