aboutsummaryrefslogtreecommitdiff
path: root/tests/main.c
blob: b69bb3e9b293132ec4ad69b8e96dbadf055e0abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

#include "tests.h"

int main(void)
{
	struct TestContext context = { 0, 0 };

	run_lexer_tests(&context);
	run_parser_tests(&context);

	printf("\n%d checks, %d failure(s)\n", context.checks, context.failures);
	return context.failures == 0 ? 0 : 1;
}