Test For Palindrome (Quiz 5-3-2021)
The snippet can be accessed without any authentication.
Authored by
I Nyoman Gde Gedar Marchiendo Pradnyana
Quiz 2 Number 4 Date :5-3-2021
testQuiz.java 392 B
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import Example;
class QuizSnippet{
@Test
public void testPalindrome{
assertEquals(true,Example.isPalindrome(""));
assertEquals(true,Example.isPalindrome("a"));
assertEquals(true,Example.isPalindrome("abba"));
assertEquals(false,Example.isPalindrome("lost"));
}
}
Please register or sign in to comment