Browse Source

Merge remote-tracking branch 'origin/main'

main
fdai4616 2 years ago
parent
commit
1bf6d90dc7
  1. 18
      src/test_/java/BShipTest.java

18
src/test_/java/BShipTest.java

@ -0,0 +1,18 @@
import BattleShip.BShip;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertNotNull;
class BShipTest {
@Test
public void testStartGame() {
BShip bShip = new BShip();
bShip.autoPlacement = true;
bShip.startGame();
assertNotNull(bShip.grid1);
assertNotNull(bShip.grid2);
}
}
Loading…
Cancel
Save