aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-09-13 23:26:34 +0300
committereug-vs <eugene@eug-vs.xyz>2022-09-13 23:29:12 +0300
commitb8bb4d08ef489bc81e9c00ae43d19c3795e22072 (patch)
treed8bdd3b6bf0ff594aa1e72c0cc07d292334e7015 /src/main.c
parent7a4d16e5ebd45b15b0c4925894c25a81c2e135c6 (diff)
downloadj1chess-b8bb4d08ef489bc81e9c00ae43d19c3795e22072.tar.gz
chore: setup primitive testing framework
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index e9902b2..a442231 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,10 @@
-#include <stdio.h>
+#include "unittest.h"
#include "board.h"
int main() {
- printf("Size of board: %lu bytes\n", sizeof(Board));
+ unit_test(2 * 2 == 4, "2 * 2 == 4");
+ unit_test(2 * 2 == 5, "2 * 2 == 4");
+
+ report();
return 0;
}