Skip to content

Commit e6393ac

Browse files
committed
Fix formatting in ArrayRotation tests
1 parent c278b2d commit e6393ac

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void shouldRotateArrayRightByTwoPositions() {
1313
ArrayRotation.rotateRight(values, 2);
1414

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

1818
@Test
1919
void shouldRotateArrayLeftByTwoPositions() {
@@ -28,7 +28,7 @@ void shouldRotateArrayLeftByTwoPositions() {
2828
void shouldHandleRotationGreaterThanArrayLength() {
2929
int[] values = {10, 20, 30, 40};
3030

31-
ArrayRotation.rotateRight(values, 2);
31+
ArrayRotation.rotateRight(values, 6);
3232

3333
assertArrayEquals(new int[] {30, 40, 10, 20}, values);
3434
}
@@ -49,7 +49,7 @@ void shouldHandleEmptyArrayWithoutErrors() {
4949
ArrayRotation.rotateRight(values, 3);
5050

5151
assertArrayEquals(new int[] {}, values);
52-
}
52+
}
5353

5454
@Test
5555
void shouldReturnOriginalArrayWhenRotationIsZero() {
@@ -59,5 +59,4 @@ void shouldReturnOriginalArrayWhenRotationIsZero() {
5959

6060
assertArrayEquals(new int[] {7, 8, 9}, values);
6161
}
62-
}
63-
62+
}

0 commit comments

Comments
 (0)