From b8bb4d08ef489bc81e9c00ae43d19c3795e22072 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 13 Sep 2022 23:26:34 +0300 Subject: chore: setup primitive testing framework --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.c') 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 +#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; } -- cgit v1.2.3