Merge branch 'main' of gitlab.emi.u-bordeaux.fr:pt2/teams-s4/tm07/lightup-07c
This commit is contained in:
commit
eed063e3ab
2 files changed
+9
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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 ********** */
|
||||
|
||||
Reference in new issue
Block a user