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