Skip to content

Commit 9a09a9e

Browse files
authored
Add test case for Rotation (TheAlgorithms#3667)
1 parent 8c6ed9c commit 9a09a9e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.thealgorithms.strings;
2+
3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
import org.junit.jupiter.api.Test;
6+
7+
public class RotationTest {
8+
9+
@Test
10+
public void testRotation() {
11+
assertEquals("eksge", Rotation.rotation("geeks", 2));
12+
assertEquals("anasban", Rotation.rotation("bananas", 3));
13+
assertEquals("abracadabra", Rotation.rotation("abracadabra", 0));
14+
}
15+
}

0 commit comments

Comments
 (0)