Select Git revision
Forked from
DAS Shantanu / Prog2Aix-tp3
Source project has a limited visibility.
-
RANDRIANARISON John authoredRANDRIANARISON John authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
PalindromeTest.java 541 B
package palindrome;
import org.junit.jupiter.api.*;
import static org.assertj.core.api.Assertions.assertThat;
public class PalindromeTest {
@Test
void testEmptyString() {
assertThat(Palindrome.isPalindrome("")).isTrue();
}
@Test
void testEvenLengthFalse() {
assertThat(Palindrome.isPalindrome("abcd")).isFalse();
}
@Test
void testEvenLengthTrue() {
assertThat(Palindrome.isPalindrome("abba")).isTrue();
}
@Test
void testOddLengthTrue() {
assertThat(Palindrome.isPalindrome("aba")).isTrue();
}
}