()
| 23 | } |
| 24 | |
| 25 | @Test |
| 26 | public void blockedByPawn() { |
| 27 | Board board = new Board(); |
| 28 | board.placeRook(3, 3, Color.BLACK); |
| 29 | board.placePawn(4, 3, Color.BLACK); |
| 30 | System.out.println(board); |
| 31 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 32 | Assert.assertEquals(10, board.getPiece(3, 3).getMoveList(board).size()); |
| 33 | Assert.assertTrue(board.getPiece(3, 3).getMoveList(board).stream().noneMatch(c -> c.captureMove)); |
| 34 | } |
| 35 | |
| 36 | @Test |
| 37 | public void blockedByEnemyPawn() { |
nothing calls this directly
no test coverage detected