()
| 5 | |
| 6 | public class KingTest { |
| 7 | @Test |
| 8 | public void moveForward() { |
| 9 | Board board = new Board(); |
| 10 | board.placeKing(0, 0, Color.BLACK); |
| 11 | board.placeKing(7, 7, Color.WHITE); |
| 12 | System.out.println(board); |
| 13 | System.out.println(board.getPiece(0, 0).getMoveList(board)); |
| 14 | Assert.assertEquals(3, board.getPiece(0, 0).getMoveList(board).size()); |
| 15 | } |
| 16 | |
| 17 | @Test |
| 18 | public void moveAsKing() { |
nothing calls this directly
no test coverage detected