Skip to content
Snippets Groups Projects
Commit 39f46b80 authored by Guyslain's avatar Guyslain
Browse files

Add tests for NextGenerationInitializer (correction)

parent d796df6f
No related merge requests found
......@@ -26,9 +26,9 @@ class NextGenerationInitializerTest {
@BeforeEach
public void prepareSimulation() {
GameOfLifeState[][] state =
{ { DEAD, DEAD, ALIVE, DEAD }
{ { DEAD, DEAD, DEAD, DEAD }
, { ALIVE, ALIVE, DEAD, DEAD }
, { DEAD, DEAD, DEAD, DEAD }
, { DEAD, DEAD, ALIVE, DEAD }
};
for (Coordinate coordinate : this.simulation) {
this.simulation.at(coordinate).set(state[coordinate.y()][coordinate.x()]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment