|
|
@ -55,7 +55,7 @@ class GameManagerTest { |
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
gameManager.player.position = gameManager.ghosts[0].position.Clone(); |
|
|
|
//act |
|
|
|
boolean collision = gameManager.GhostPlayerColisionTest(); |
|
|
|
boolean collision = gameManager.ghostPlayerColisionTest(); |
|
|
|
boolean expected = true; |
|
|
|
|
|
|
|
// assert |
|
|
@ -70,7 +70,7 @@ class GameManagerTest { |
|
|
|
gameManager.player.position = new Vector2(2,3); |
|
|
|
gameManager.ghosts[0].position = new Vector2(4,5); |
|
|
|
//act |
|
|
|
boolean collision = gameManager.GhostPlayerColisionTest(); |
|
|
|
boolean collision = gameManager.ghostPlayerColisionTest(); |
|
|
|
boolean expected = false; |
|
|
|
|
|
|
|
// assert |
|
|
|