refactor: ArrayLeftRotationTest (#5389)

This commit is contained in:
Alex Klymenko
2024-08-25 22:08:10 +02:00
committed by GitHub
parent 3187b1f99c
commit a5f57fbfde
2 changed files with 35 additions and 18 deletions

View File

@ -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);
}
}