Skip to content

Commit

Permalink
add test case for bug - behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
MZober1993 authored and MZober1993 committed Nov 6, 2016
1 parent 27bc2e2 commit d4b3ee6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/chess/tools/game/ChessTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public void turnSucceeds() {
Assert.assertEquals(Collections.singletonList(true), chess.getTurnValids());
}

@Test
public void notValidBug() {
Chess chess = new Chess(Arrays.asList("e2 e3", "c7 c6", "f1 c4"));
Assert.assertEquals(Arrays.asList(true, true, false), chess.getTurnValids());
//TODO: should be: Assert.assertEquals(Arrays.asList(true, true, true), chess.getTurnValids());
}

@Test
public void noChessMateSucceeds() {
Chess chess = new Chess(Arrays.asList("e2 e3", "d7 d6", "d1 h5", "b8 c6", "f1 c4", "a7 a6", "h5 f7"));
Expand Down

0 comments on commit d4b3ee6

Please sign in to comment.