mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +08:00
refactor: ArrayLeftRotationTest
(#5389)
This commit is contained in:
@ -44,4 +44,11 @@ class ArrayLeftRotationTest {
|
||||
int[] result = ArrayLeftRotation.rotateLeft(arr, n);
|
||||
assertArrayEquals(expected, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testForEmptyArray() {
|
||||
int[] arr = {};
|
||||
int[] result = ArrayLeftRotation.rotateLeft(arr, 3);
|
||||
assertArrayEquals(arr, result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user