aboutsummaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-12-07 19:17:33 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-01-07 18:51:21 +0100
commit0574f5a7c5159a2ae1d7d2182cec982509947db9 (patch)
tree2a9678fd39bcf8ead03c7ee979caf668f2f17892 /tests.c
parent4aec2e1331650cabb966bbf24ed83f76cbbe9912 (diff)
checkpoint
Diffstat (limited to 'tests.c')
-rw-r--r--tests.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests.c b/tests.c
new file mode 100644
index 0000000..a9a73a1
--- /dev/null
+++ b/tests.c
@@ -0,0 +1,37 @@
+#define MAX_INPUT_LEN 255
+
+#define TB_IMPL
+#include "external/termbox2.h"
+
+#include "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));
+}