@Test
 public void evenLetterFalseTest() {
   assertEquals(
       "Incorrect results for 'abtchhcbba'.",
       "This is not polindrome.",
       problem.run("abtchhcbba"));
 }
 @Test
 public void oddLetterTest() {
   assertEquals(
       "Incorrect results for 'hhhhhhaaaacaaaahhhhhh'.",
       "This is polindrome.",
       problem.run("hhhhhhaaaacaaaahhhhhh"));
 }
 @Test
 public void twoLetterFalseTest() {
   assertEquals("Incorrect results for 'bc'.", "This is not polindrome.", problem.run("bc"));
 }
 @Test
 public void twoLetterTest() {
   assertEquals("Incorrect results for 'bb'.", "This is polindrome.", problem.run("bb"));
 }
 @Test
 public void singleLetterTest() {
   assertEquals("Incorrect results for 'a'.", "This is polindrome.", problem.run("a"));
 }
 @Test
 public void zeroTest() {
   assertEquals("Incorrect results for empty string.", "Nan", problem.run(""));
 }
Example #7
0
 public static void main(String[] args) {
   Problem p = new p035();
   p.run();
   System.out.println(p.answer());
 }