diff options
| author | hachem <im@hachem.wtf> | 2026-08-30 04:30:33 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-30 04:30:33 +0200 |
| commit | 2b5a8a428cbbdda8ef0efa7b2c77c100b8dbfa0c (patch) | |
| tree | ca0ed5be92ae59c9609ff4eaa3f86ce2f3cb4b03 /tests/main.c | |
| parent | affa20ab497911353babc9ed6c580c8a12b2bf15 (diff) | |
test: add lexer testing
Diffstat (limited to 'tests/main.c')
| -rw-r--r-- | tests/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 <stdio.h> + +#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; +} |
