Add test case for Rotation (#3667)
This commit is contained in:
parent
8c6ed9c240
commit
9a09a9e772
15
src/test/java/com/thealgorithms/strings/RotationTest.java
Normal file
15
src/test/java/com/thealgorithms/strings/RotationTest.java
Normal file
@ -0,0 +1,15 @@
|
||||
package com.thealgorithms.strings;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user