Permalink
Browse files

Changed a test to expect position, not cell

  • Loading branch information...
1 parent 3ec43e6 commit 3d12e4468d0df087f331732eaec516e120c80940 @dziemid committed Dec 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 3d12e44

Please sign in to comment.