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. 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 ********** */