blob: f0caf52d3cf6010cd94ddf86cde2f351893ada94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
#include "tests.h"
int main(void)
{
struct TestContext context = { 0, 0 };
run_lexer_tests(&context);
run_parser_tests(&context);
run_codegen_tests(&context);
printf("\n%d checks, %d failure(s)\n", context.checks, context.failures);
return context.failures == 0 ? 0 : 1;
}
|