aboutsummaryrefslogtreecommitdiff
path: root/box_test.c
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2025-03-19 14:00:00 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-03-19 14:00:00 +0100
commit23b0098fb6aee9fcc182424270a8a24c03b79c49 (patch)
tree3d88f426d7bcfb44f448a0bf56adb5cb7db18232 /box_test.c
parent290952bb0b0c3f39c60f35247929284ec97915d6 (diff)
Created interface for unit testing UI
Diffstat (limited to 'box_test.c')
-rw-r--r--box_test.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/box_test.c b/box_test.c
new file mode 100644
index 0000000..57663f9
--- /dev/null
+++ b/box_test.c
@@ -0,0 +1,27 @@
+#include <stdio.h>
+#include <stdbool.h>
+
+#define Assert(expr) if (!(expr)) return false;
+
+char
+DrawingTest()
+{
+ Assert(2 == 3);
+
+ return true;
+}
+
+char
+FooTest()
+{
+ return false;
+}
+
+
+int
+main(int Argc, char* Argv[])
+{
+ char *i(void);
+ i = &DrawingTest;
+
+}