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