Пример #1
0
 @Test
 public void testMatrixStorage() {
   grid.getSquare(new Position(4, 3)).setState(15, true);
   assertTrue(mazeMatrix.get(new Position(4 * 2 + 1, 3 * 2 + 1)).hasState(15));
 }
Пример #2
0
 @Test
 public void testWallSetup() {
   assertTrue(
       grid.getSquare(new Position(1, 1)).getWall(RIGHT)
           == grid.getSquare(new Position(2, 1)).getWall(LEFT));
 }