java/src/test/java/exams/Exam2Test.java
<reponame>ijlhjj/exams<gh_stars>0package exams;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

class Exam2Test {

    @Test
    void isPalindrome() {
        Exam2 exam = new Exam2();
        assertTrue(exam.isPalindrome(121));
        assertFalse(exam.isPalindrome(-121));
        assertFalse(exam.isPalindrome(10));
    }

}
