aboutsummaryrefslogtreecommitdiff
path: root/box_test.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
commitbb9994846b655070f5d61e2708c9f43f7855e649 (patch)
tree3d88f426d7bcfb44f448a0bf56adb5cb7db18232 /box_test.c
parentc6c6f030b8c97b3bbff621d7b7e20ae31048f5a9 (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;
+
+}