|
@ -83,9 +83,9 @@ class GameManagerTest { |
|
|
GameManager game = new GameManager(); |
|
|
GameManager game = new GameManager(); |
|
|
|
|
|
|
|
|
game.livesRemaining = 3; |
|
|
game.livesRemaining = 3; |
|
|
game.handleGhostCollision(); |
|
|
|
|
|
game.handleGhostCollision(); |
|
|
|
|
|
game.handleGhostCollision(); |
|
|
|
|
|
|
|
|
for(int i = 0;i < 3; i++) { |
|
|
|
|
|
game.handleGhostCollision(); |
|
|
|
|
|
} |
|
|
int expectedLives = 3; |
|
|
int expectedLives = 3; |
|
|
assertThat(game.livesRemaining).isEqualTo(expectedLives); |
|
|
assertThat(game.livesRemaining).isEqualTo(expectedLives); |
|
|
} |
|
|
} |
|
|