def test_FourCharStringLookingAtIndexOneAndTwo(self): s = "xxxx" expected = "xxxx" actual = maxPalindromeSubstring.find_palindrome_from_center(s, 1, 2) self.assertEqual(expected, actual)
def test_SingleCharString(self): s = "x" expected = "x" actual = maxPalindromeSubstring.find_palindrome_from_center(s, 0, 0) self.assertEqual(expected, actual)
def test_TwoCharStringLookingAtIndexZero(self): s = "xx" expected = "x" actual = maxPalindromeSubstring.find_palindrome_from_center(s, 0, 0) self.assertEqual(expected, actual)