From 9aebca97242588a2fc5f16f7cb554ede3537f858 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Wed, 10 Nov 2021 20:38:29 +0100 Subject: [PATCH] bug fix --- game_test_thoguet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game_test_thoguet.c b/game_test_thoguet.c index 0cc41d4..d4a19fd 100644 --- a/game_test_thoguet.c +++ b/game_test_thoguet.c @@ -16,7 +16,7 @@ bool test_dummy(void){ bool test_game_restart(void){ game g = game_default_solution(); - game g1 = game_default_solution(); + game g1 = game_default(); game_restart(g); assert(game_equal(g,g1)); game_delete(g); @@ -141,7 +141,7 @@ int main(int argc, char * argv[]){ usage(argc, argv); } fprintf(stderr, "=> Start test \"%s\"\n", argv[1]); - bool ok = false; + bool ok = true; if (strcmp("dummy", argv[1]) == 0) ok = test_dummy(); else if (strcmp("game_print", argv[1]) == 0)