diff --git a/src/test/java/inf112/skeleton/app/PlayerTest.java b/src/test/java/inf112/skeleton/app/PlayerTest.java index f095d701df0597b3e4224a875c8d61f5ec6c35e5..39d5b96745c8d859976ae7f3adf67f373e40db05 100644 --- a/src/test/java/inf112/skeleton/app/PlayerTest.java +++ b/src/test/java/inf112/skeleton/app/PlayerTest.java @@ -55,4 +55,11 @@ public class PlayerTest { assertEquals(player.y, y2+player.gravity); } + @Test + void DeadTest(){ + Player player = new Player(); + int heart = player.hearts; + player.Dead(); + assertEquals(player.hearts, heart-1); + } }