From 7f6c2bd7cdf9f93b8321e0e8bb188065a3a990e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Sun, 28 Nov 2021 20:43:14 +0100 Subject: [PATCH] update test_game_new --- game_test_thoguet.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game_test_thoguet.c b/game_test_thoguet.c index 5c3eb1c..15fa42c 100644 --- a/game_test_thoguet.c +++ b/game_test_thoguet.c @@ -89,6 +89,11 @@ bool test_game_print(void) { } printf("%d\n", i); g = game_new(tab); + for (uint i = 0; i < DEFAULT_SIZE; i++) { + for (uint j = 0; j < DEFAULT_SIZE; j++) { + assert(list[i] == game_get_square(g, i, j)); + } + } assert(g); game_print(g); game_delete(g);