aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.c
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@keyfried.com>2025-03-19 14:00:00 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-03-19 14:00:00 +0100
commit5863d8b5164ce8de346284ded699065665d6119a (patch)
treed54df0bfde3dbffa02b1f138af4f12456f261e54 /tests/tests.c
parent1c31e27c1bdf22c198c9617c2b923f6a7beeffc8 (diff)
First pass at preparing for Github
Diffstat (limited to 'tests/tests.c')
-rw-r--r--tests/tests.c34
1 files changed, 34 insertions, 0 deletions
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));
+}