Browse Source

update UnitTest Ship

main
fdai4581 2 years ago
parent
commit
551dd43cc9
  1. 4
      src/test_/java/ShipTest.java

4
src/test_/java/ShipTest.java

@ -15,5 +15,9 @@ class ShipTest {
ship.counter(); ship.counter();
assertFalse(ship.isKilled()); assertFalse(ship.isKilled());
assertEquals(1, ship.numOfHits); assertEquals(1, ship.numOfHits);
ship.counter();
assertFalse(ship.isKilled());
assertEquals(2, ship.numOfHits);
} }
} }
Loading…
Cancel
Save