Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed a test to expect position, not cell

  • Loading branch information...
commit 3d12e4468d0df087f331732eaec516e120c80940 1 parent 3ec43e6
@dziemid authored
View
4 java/game_of_life/src/test/java/refactormycode/gameoflife/GenerationTest.java
@@ -45,7 +45,7 @@ public void overcrowdedCellShouldDie() throws Exception {
Collection<Cell> nextGeneration = generation.next(positions);
// Then
- assertThat(nextGeneration.contains(new Cell(0,1)), is(false));
+ assertThat(nextGeneration.contains(new Position(0,1)), is(false));
}
@@ -58,7 +58,7 @@ public void threeCellsCreateLife() throws Exception {
Collection<Cell> nextGeneration = generation.next(cells);
// Then
- assertThat(nextGeneration.contains(new Cell(1,1)), is(true));
+ assertThat(nextGeneration.contains(new Position(1,1)), is(true));
}
@Test
Please sign in to comment.
Something went wrong with that request. Please try again.