From 2b5a8a428cbbdda8ef0efa7b2c77c100b8dbfa0c Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 30 Aug 2026 04:30:33 +0200 Subject: test: add lexer testing --- tests/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/main.c (limited to 'tests/main.c') diff --git a/tests/main.c b/tests/main.c new file mode 100644 index 0000000..49ac448 --- /dev/null +++ b/tests/main.c @@ -0,0 +1,13 @@ +#include + +#include "tests.h" + +int main(void) +{ + struct TestContext context = { 0, 0 }; + + run_lexer_tests(&context); + + printf("\n%d checks, %d failure(s)\n", context.checks, context.failures); + return context.failures == 0 ? 0 : 1; +} -- cgit v1.3