Exemplo n.º 1
0
def test_uppercase_palindrome():
    assert is_palindrome('OTTO') == True
Exemplo n.º 2
0
def test_sentence_with_punctuation_middle_palindrome():
    assert is_palindrome("madam i'm adam") == True
Exemplo n.º 3
0
def test_sentence_with_punctuation_end_palindrome():
    assert is_palindrome("madam i'm adam.") == True
Exemplo n.º 4
0
def test_sentence_nonpalindrome():
    assert is_palindrome('mdam im adam') == False
Exemplo n.º 5
0
def test_lowercase_palindrome():
    assert is_palindrome('atta') == True
Exemplo n.º 6
0
def test_spaced_nonpalindrome():
    assert is_palindrome('a D c b a') == False
Exemplo n.º 7
0
def test_sentence_palindrome():
    assert is_palindrome('madam im adam') == True
Exemplo n.º 8
0
def test_number_letter_mix_nonpalindrome():
    assert is_palindrome('wfsa23w321') == False
Exemplo n.º 9
0
def test_uneven_spaced_palindrome():
    assert is_palindrome('ab c b a') == True
Exemplo n.º 10
0
def test_number_string_nonpalindrome():
    assert is_palindrome('23321') == False
Exemplo n.º 11
0
def test_number_letter_mix_palindrome():
    assert is_palindrome('1f23g32f1') == True
Exemplo n.º 12
0
def test_number_string_palindrome():
    assert is_palindrome('123321') == True
Exemplo n.º 13
0
def test_nonpalindrome_mixed():
    assert is_palindrome('hRGiUhN') == False
Exemplo n.º 14
0
def test_nonpalindrome_upper():
    assert is_palindrome('HHRGKIUHN') == False
Exemplo n.º 15
0
def test_nonpalindrome_lower():
    assert is_palindrome('wghysg') == False
Exemplo n.º 16
0
def test_mixedcase_palindrome():
    assert is_palindrome('ObTTbO') == True