From 24e484af8087b5b22a6f5fafb952819caecd77a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Sun, 28 Nov 2021 21:08:26 +0100 Subject: [PATCH] gamenew debugged --- game_test_thoguet.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game_test_thoguet.c b/game_test_thoguet.c index 2953743..f9fcded 100644 --- a/game_test_thoguet.c +++ b/game_test_thoguet.c @@ -68,9 +68,11 @@ bool test_game_new(void) { } printf("%d\n", i); g = game_new(tab); - for (uint i = 0; i < DEFAULT_SIZE; i++) { + for (uint i2 = 0; i2 < DEFAULT_SIZE; i2++) { for (uint j = 0; j < DEFAULT_SIZE; j++) { - assert(list[i] == game_get_square(g, i, j)); + printf("list :%d, get square :%d", list[i], + game_get_square(g, i2, j)); + assert(list[i] == game_get_square(g, i2, j)); } } assert(g);