From e21080ad4fec2ecbb8f24e3f709bdd679ead6a61 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 14 Nov 2021 21:14:18 +0100 Subject: [PATCH] debug vpl --- game_test_thoguet.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/game_test_thoguet.c b/game_test_thoguet.c index 960677b..5fbde92 100644 --- a/game_test_thoguet.c +++ b/game_test_thoguet.c @@ -61,9 +61,8 @@ bool test_game_new(void){ // est ce qu'il faut faire avec un tab invalide ? bool test_game_print(void){ - game_print(NULL); square tab[DEFAULT_SIZE*DEFAULT_SIZE]; - square list[] = {S_BLANK,S_LIGHTBULB,S_MARK,S_BLACK,S_BLACK0,S_BLACK1,S_BLACK2,S_BLACK3,S_BLACK4,S_BLACKU,F_ERROR}; + square list[] = {S_BLANK,S_LIGHTBULB,S_MARK,S_BLACK0,S_BLACK1,S_BLACK2,S_BLACK3,S_BLACK4,S_BLACKU}; game g; for (uint i = 0; i < sizeof(list)/sizeof(list[0]) ; i ++){ for (uint j = 0; j < DEFAULT_SIZE*DEFAULT_SIZE; j++){ @@ -395,7 +394,7 @@ bool brutforce(game g,int a){ bool test_game_update_flags(void){ game g = game_new_empty(); - if (!brutforce(g,2)){ + if (!brutforce(g,3)){ game_delete(g); return EXIT_FAILURE; }