Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects

Test For Palindrome (Quiz 5-3-2021)

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.

    Quiz 2 Number 4 Date :5-3-2021

    Edited
    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"));
        }
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment