Skip to content
Snippets Groups Projects
Commit 6667a4dd authored by dro024's avatar dro024
Browse files

Added Deadtest, tester om den fjerner et hjerte når den dør

parent 7b256545
No related branches found
No related tags found
No related merge requests found
...@@ -55,4 +55,11 @@ public class PlayerTest { ...@@ -55,4 +55,11 @@ public class PlayerTest {
assertEquals(player.y, y2+player.gravity); assertEquals(player.y, y2+player.gravity);
} }
@Test
void DeadTest(){
Player player = new Player();
int heart = player.hearts;
player.Dead();
assertEquals(player.hearts, heart-1);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment