mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-29 15:34:21 +08:00
16 lines
416 B
Java
16 lines
416 B
Java
package com.thealgorithms.strings;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class RotationTest {
|
|
|
|
@Test
|
|
public void testRotation() {
|
|
assertEquals("eksge", Rotation.rotation("geeks", 2));
|
|
assertEquals("anasban", Rotation.rotation("bananas", 3));
|
|
assertEquals("abracadabra", Rotation.rotation("abracadabra", 0));
|
|
}
|
|
}
|