aboutsummaryrefslogtreecommitdiff
path: root/tests.c
blob: f4a047d089f2c1e2128224ade0088c07af88bb0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#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");

	mt_test_report();
	
	return tests_failed != 0;
}