From f9966f6f93855c84d083a63af3a27fe6e916124f Mon Sep 17 00:00:00 2001 From: Mohamed Fatih Date: Thu, 17 Feb 2022 16:02:38 +0100 Subject: [PATCH 1/2] add test in game_load --- game_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/game_test.c b/game_test.c index 3f767cb..d6c7b3a 100644 --- a/game_test.c +++ b/game_test.c @@ -1163,6 +1163,14 @@ bool test_game_load(bool whoami, char** name) { game_delete(g5x3w); game_delete(g5x3waux); + // test for the black squares + game gblack = game_new(other_squares); + game_save(gblack, "gblack.txt"); + game gblack2 = game_load("gblack.txt"); + assert(game_equal(gblack, gblack2)); + game_delete(gblack); + game_delete(gblack2); + return true; } /* ********** USAGE ********** */ From d0052dbeda054b7cf170ef40a85022538a960fb3 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Thu, 17 Feb 2022 16:05:10 +0100 Subject: [PATCH 2/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 62b6433..251f0e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ stages: # List of stages for jobs, and their order of execution default: tags: + - shell - CREMI build-job: # This job runs in the build stage, which runs first.