1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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; }