Example #1
0
def test_one_char():
    assert palindromic.get_longest_palindrome("A") == "A"
Example #2
0
def test_reversed():
    assert palindromic.get_longest_palindrome("ABCDEDCBAFD") == "ABCDEDCBA"
Example #3
0
def test_empty():
    assert palindromic.get_longest_palindrome("") == ""
Example #4
0
def test_whole_string():
    assert palindromic.get_longest_palindrome("ABBA") == "ABBA"
Example #5
0
def test_banana():
    assert palindromic.get_longest_palindrome("BANANA") == "ANANA"
def test_reversed():
    assert palindromic.get_longest_palindrome("ABCDEBCA") == "A"
Example #7
0
def test_one_char_in_str():
    assert palindromic.get_longest_palindrome("ABCDEF") == "A"
def test_empty():
    """

    :return:
    """
    assert palindromic.get_longest_palindrome("") == ""
def test_banana():
    """

    :return:
    """
    assert palindromic.get_longest_palindrome("BANANA") == "ANANA"
def test_whole_string():
    """

    :return:
    """
    assert palindromic.get_longest_palindrome("ABBA") == "ABBA"
def test_one_char():
    """

    :return:
    """
    assert palindromic.get_longest_palindrome("A") == "A"
Example #12
0
def test_midle_polindrom():
    assert palindromic.get_longest_palindrome("BANANAG") == "ANANA"