Skip to content

Commit 71c4ff0

Browse files
committed
Fix negative rotation test expectation
1 parent 7bd6420 commit 71c4ff0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ void shouldHandleNegativeRotation() {
7575

7676
ArrayRotation.rotateRight(values, -2);
7777

78-
assertArrayEquals(new int[] {4, 3, 5, 1, 2}, values);
78+
assertArrayEquals(new int[] {3, 4, 5, 1, 2}, values);
7979
}
8080
}

0 commit comments

Comments
 (0)