diff --git a/src/test_/java/ShipTest.java b/src/test_/java/ShipTest.java index cba85fb..c2d5a7d 100644 --- a/src/test_/java/ShipTest.java +++ b/src/test_/java/ShipTest.java @@ -11,5 +11,9 @@ class ShipTest { Ship ship = new Ship(3, "TestShip"); assertFalse(ship.isKilled()); assertEquals(0, ship.numOfHits); + + ship.counter(); + assertFalse(ship.isKilled()); + assertEquals(1, ship.numOfHits); } } \ No newline at end of file