src/test/java/GameGridTest.java
/**
     * Rule 4 Tests
     *   4. Any dead cell with exactly three live neighbours becomes a live cell.
     */
Rule 4 Tests
4. Any dead cell with exactly three live neighbours becomes a live cell.
Rule 4 Tests 4 . Any dead cell with exactly three live neighbours becomes a live cell .
@Test
    public void deadCellExactlyThreeLiveNeighbors() {
        final String inputGrid =
                ".*." + GameOfLife.LF
              + "*.*" + GameOfLife.LF
              + "..."
              ;
        final String expectedResult =
                ".*." + GameOfLife.LF
              + ".*." + GameOfLife.LF
              + "..."
              ;
        testGameGrid(TEST_3X3_GAME_GRID_HEADER + inputGrid, expectedResult);
    }
@ Test public void deadCellExactlyThreeLiveNeighbors ( ) { final String inputGrid = ".*." + GameOfLife . LF + "*.*" + GameOfLife . LF + "..." ; final String expectedResult = ".*." + GameOfLife . LF + ".*." + GameOfLife . LF + "..." ; testGameGrid ( TEST_3X3_GAME_GRID_HEADER + inputGrid , expectedResult ) ; }
Rule 4 Tests
   4.
Rule 4 Tests 4 .