Skip to content

Commit

Permalink
reformat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Nov 16, 2024
1 parent 3afeccf commit 1241f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ private ConditionalStep init(WorldPoint playerLocation, Item[] mockedItems)
.thenReturn(playerLocation);

var mockedItemContainer = Mockito.mock(ItemContainer.class);
if (mockedItems != null) {
if (mockedItems != null)
{
when(mockedItemContainer.getItems()).thenReturn(mockedItems);
when(client.getItemContainer(InventoryID.INVENTORY)).thenReturn(mockedItemContainer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class MetalDoorSolverTest
public void testValidCodes()
{
// from pajdonk
assertArrayEquals(new int[]{0, 2, 3, 5},MetalDoorSolver.calculate("IFCB"));
assertArrayEquals(new int[]{0, 2, 3, 5}, MetalDoorSolver.calculate("IFCB"));

// from Gupinic
assertArrayEquals(new int[]{1, 3, 7, 2}, MetalDoorSolver.calculate("FBDG"));
Expand All @@ -55,7 +55,7 @@ public void testValidCodes()
public void testLowercaseValidCodes()
{
// from pajdonk
assertArrayEquals(new int[]{0, 2, 3, 5},MetalDoorSolver.calculate("ifcb"));
assertArrayEquals(new int[]{0, 2, 3, 5}, MetalDoorSolver.calculate("ifcb"));

// from Gupinic
assertArrayEquals(new int[]{1, 3, 7, 2}, MetalDoorSolver.calculate("fbdg"));
Expand Down

0 comments on commit 1241f54

Please sign in to comment.