From 551dd43cc9c5b040bea9e58d03230bb005c999f6 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Wed, 8 Feb 2023 21:23:14 +0100 Subject: [PATCH] update UnitTest Ship --- src/test_/java/ShipTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test_/java/ShipTest.java b/src/test_/java/ShipTest.java index c2d5a7d..4924e8b 100644 --- a/src/test_/java/ShipTest.java +++ b/src/test_/java/ShipTest.java @@ -15,5 +15,9 @@ class ShipTest { ship.counter(); assertFalse(ship.isKilled()); assertEquals(1, ship.numOfHits); + + ship.counter(); + assertFalse(ship.isKilled()); + assertEquals(2, ship.numOfHits); } } \ No newline at end of file