def test_word_nono(self):
     eq_(False, is_palindrome("nono"))
 def test_sentence_panama(self):
     eq_(True, is_palindrome("A man, a plan, a canal—Panama!"))
 def test_sentence_salami(self):
     eq_(True, is_palindrome("Go hang a salami, I’m a lasagna hog"))
 def test_word_madam(self):
     eq_(True, is_palindrome("madam"))
 def test_sentence_madam(self):
     eq_(True, is_palindrome("Madam, I’m Adam"))
Example #6
0
 def test_word_nono(self):
     eq_(False, is_palindrome("nono"))
Example #7
0
 def test_sentence_salami(self):
     eq_(True, is_palindrome("Go hang a salami, I’m a lasagna hog"))
Example #8
0
 def test_sentence_panama(self):
     eq_(True, is_palindrome("A man, a plan, a canal—Panama!"))
Example #9
0
 def test_sentence_madam(self):
     eq_(True, is_palindrome("Madam, I’m Adam"))
Example #10
0
 def test_word_madam(self):
     eq_(True, is_palindrome("madam"))