Beispiel #1
0
 def test_result9(self):
     s = "aacabdkacaa"
     expected = "aca"
     ls = LongestPalindromeSubstring()
     result = ls.longestPalindrome(s)
     self.assertEqual(expected, result)
Beispiel #2
0
 def test_result8(self):
     s = "babad"
     expected = "bab"
     ls = LongestPalindromeSubstring()
     result = ls.longestPalindrome(s)
     self.assertEqual(expected, result)