Beispiel #1
0
 def test_case_1(self):
     self.assertEqual(longestPalindromicSubstring("a"), "a")
Beispiel #2
0
 def test_case_2(self):
     self.assertEqual(longestPalindromicSubstring("it's highnoon"), "noon")
Beispiel #3
0
 def test_case_10(self):
     self.assertEqual(
         longestPalindromicSubstring("zzzzzzz2345abbbba5432zzbbababa"),
         "zz2345abbbba5432zz")
Beispiel #4
0
 def test_case_12(self):
     self.assertEqual(longestPalindromicSubstring("z234a5abbba54a32z"),
                      "5abbba5")
Beispiel #5
0
 def test_case_9(self):
     self.assertEqual(longestPalindromicSubstring("abcdefggfedcba"),
                      "abcdefggfedcba")
Beispiel #6
0
 def test_case_6(self):
     self.assertEqual(
         longestPalindromicSubstring("abcdefgfedcbazzzzzzzzzzzzzzzzzzzz"),
         "zzzzzzzzzzzzzzzzzzzz")
Beispiel #7
0
 def test_case_5(self):
     self.assertEqual(longestPalindromicSubstring("abaxyzzyxf"), "xyzzyx")
Beispiel #8
0
 def test_case_4(self):
     self.assertEqual(longestPalindromicSubstring("abccbait's highnoon"),
                      "abccba")
Beispiel #9
0
 def test_case_3(self):
     self.assertEqual(longestPalindromicSubstring("noon high it is"),
                      "noon")