Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Schinc committed Mar 25, 2024
1 parent 5a4096c commit 35a8b86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ChickenAttackerInitialGameStateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -348,13 +348,16 @@ void testGame() {

branch2 = branch2.withOccupantRemoved(occupant1T);
assertEquals(0, branch2.board().occupantCount(PlayerColor.YELLOW, Occupant.Kind.PAWN));
branch2 = branch2.withNewOccupant(occupant1T);

assertEquals(GameState.Action.END_GAME, branch2.nextAction());
assertEquals("The winners are [RED] with 8 points.", branch2.messageBoard().messages().getLast().text());


assertNull(branch2.currentPlayer());

// at the end of the game
// assert currentPlayer is null
// assert free occupants count (standard situation + after closing a forest/river)

// assert deers

}

Expand Down

0 comments on commit 35a8b86

Please sign in to comment.