Merge branch '4-bug-not-found-library07'

This commit is contained in:
Théophyl Hoguet committed 2021-11-21 00:46:18 +01:00
commit ea3f255947
1 file changed
+12 -2
+12 -2
View File
@@ -29,8 +29,18 @@ bool test_game_is_over(void){
/* ******* game_restart ******* */
bool test_game_restart(void){
game g = game_default_solution();
game g1 = game_default();
game g = game_default();
game g1 = game_default_solution();
game_set_square(g,1,5,S_BLACK4);
game_set_square(g1,1,5,S_BLACK4);
game_set_square(g,3,2,S_BLACK3);
game_set_square(g1,3,2,S_BLACK3);
game_set_square(g,0,1,S_LIGHTBULB);
game_set_square(g1,0,1,S_LIGHTBULB);
game_play_move(g,2,0,S_MARK);
game_play_move(g1,2,0,S_MARK);
assert(!game_equal(g,g1));
game_restart(g1);
game_restart(g);
assert(game_equal(g,g1));
game_delete(g);