update test_game_new
This commit is contained in:
1 parent
fddc2872c5
commit
d9477ef979
1 file changed
+5
@@ -68,6 +68,11 @@ bool test_game_new(void) {
|
|||||||
}
|
}
|
||||||
printf("%d\n", i);
|
printf("%d\n", i);
|
||||||
g = game_new(tab);
|
g = game_new(tab);
|
||||||
|
for (uint i = 0; i < DEFAULT_SIZE; i++) {
|
||||||
|
for (uint j = 0; j < DEFAULT_SIZE; j++) {
|
||||||
|
assert(list[i] == game_get_square(g, i, j));
|
||||||
|
}
|
||||||
|
}
|
||||||
assert(g);
|
assert(g);
|
||||||
game_delete(g);
|
game_delete(g);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user