Skip to content

Commit

Permalink
[fix] Corrects test behaviour and removes unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Feb 6, 2024
1 parent 4a5dbbe commit 26af337
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ public void init() {
controllerSmall.getGridSecondPlayer().getShipSet().placeShip(1, 1, 3, Direction.NORTH);
}

@Test
public void testEquals(){
GameCell cell = controller.getGridFirstPlayer().getCell(1,1);
assertTrue(controller.getGridSecondPlayer().getCell(1,1).equals(cell));
}

@Test
public void testFindShipContainingCell(){
GameGrid grid;
Expand Down Expand Up @@ -105,7 +99,7 @@ public void placementLegitTest() {
controller.getGridSecondPlayer().getShipSet().placeShip(6, 4, 5, Direction.EAST);
assertEquals(controller.getGridSecondPlayer().getShipSet().placementLegit(), true);

controller.getGridSecondPlayer().getShipSet().placeShip(2, 5, 3, Direction.NORTH);
controller.getGridSecondPlayer().getShipSet().placeShip(2, 5, 3, Direction.SOUTH);
assertEquals(controller.getGridSecondPlayer().getShipSet().placementLegit(), false);

//test controllerSmall
Expand Down

0 comments on commit 26af337

Please sign in to comment.