Add test case for Rotation (#3667)

This commit is contained in:
Harshal 2022-10-26 07:14:37 +05:30 committed by GitHub
parent 8c6ed9c240
commit 9a09a9e772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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