Skip to content

Commit 47aa448

Browse files
committed
Fix formatting in ArrayRotation tests
1 parent 5e67220 commit 47aa448

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/test/java/com/thealgorithms/others/ArrayRotationTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ public class ArrayRotationTest {
88

99
@Test
1010
void shouldRotateArrayRightByTwoPositions() {
11-
int[] values = { 1, 2, 3, 4, 5 };
11+
int[] values = {1, 2, 3, 4, 5};
1212

1313
ArrayRotation.rotateRight(values, 2);
1414

1515
assertArrayEquals(new int[] {4, 5, 1, 2, 3}, values);
16-
1716
}
1817

1918
@Test
@@ -23,7 +22,6 @@ void shouldRotateArrayLeftByTwoPositions() {
2322
ArrayRotation.rotateLeft(values, 2);
2423

2524
assertArrayEquals(new int[] {3, 4, 5, 1, 2}, values);
26-
2725
}
2826

2927
@Test
@@ -61,5 +59,5 @@ void shouldReturnOriginalArrayWhenRotationIsZero() {
6159

6260
assertArrayEquals(new int[] {7, 8, 9}, values);
6361
}
64-
}
62+
}
6563

0 commit comments

Comments
 (0)