From f87f7b4f0aaccc65d03ccee5bb11915ead6fb0e1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 27 Apr 2025 12:52:06 +0200 Subject: First pass at preparing for Github --- tests/tests.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/tests.c (limited to 'tests/tests.c') diff --git a/tests/tests.c b/tests/tests.c new file mode 100644 index 0000000..93ba4cc --- /dev/null +++ b/tests/tests.c @@ -0,0 +1,34 @@ +#define MAX_INPUT_LEN 255 + +#define TB_IMPL +#include "../source/termbox2.h" +#include "../source/chatty.h" + +#define TEST_IMPL +#include "test.h" + +#define Assert(expr) if (!(expr)) *(u8*)0 = 0 + +bool +DrawingTest(void) +{ + struct tb_event ev = {0}; + + return true; +} + +int +main(int Argc, char* Argv[]) +{ + test_functions TestFunctions[] = { + TESTFUNC(DrawingTest), + { 0 } + }; + + Assert(setlocale(LC_ALL, "")); + + Before = (void(*)(void))tb_init; + After = (void(*)(void))tb_shutdown; + + return(Test(TestFunctions, Argc, Argv)); +} -- cgit v1.2.3