def test_longest_palindrome_substring_5():
    assert longest_palindrome_substring("sgafgsaippuakivikauppiasafshdg") == 19
def test_longest_palindrome_substring_4():
    assert longest_palindrome_substring("saippuakivikauppias") == 19
def test_longest_palindrome_substring_2():
    assert longest_palindrome_substring("MADAM") == 5
def test_longest_palindrome_substring_3():
    assert longest_palindrome_substring("RACECAR") == 7
def test_longest_palindrome_substring_1():
    assert longest_palindrome_substring("AABACCAAA") == 4