Merge branch 'main' of gitlab.emi.u-bordeaux.fr:pt2/teams-s4/tm07/lightup-07c

This commit is contained in:
Théophyl Hoguet committed 2022-02-17 16:13:49 +01:00
commit eed063e3ab
2 files changed
+9

No files matched your search

+1
View File
@@ -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.
+8
View File
@@ -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 ********** */