We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6ed9c commit 9a09a9eCopy full SHA for 9a09a9e
src/test/java/com/thealgorithms/strings/RotationTest.java
@@ -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