Example #1
0
 def test_palindrome4(self):
     "Negative test"
     assert exercises.palindrome("ac") is False
Example #2
0
 def test_palindrome2(self):
     "Tests Empty string"
     assert exercises.palindrome("") is True
Example #3
0
 def test_palindrome3(self):
     "Tests length 1 string"
     assert exercises.palindrome("a") is True
Example #4
0
 def test_palindrome1(self):
     "Tests proper palindrome"
     assert exercises.palindrome("abba") is True
 def test_palindrome4(self):
     "Negative test"
     assert exercises.palindrome("ac") is False
 def test_palindrome3(self):
     "Tests length 1 string"
     assert exercises.palindrome("a") is True
 def test_palindrome2(self):
     "Tests Empty string"
     assert exercises.palindrome("") is True
 def test_palindrome1(self):
     "Tests proper palindrome"
     assert exercises.palindrome("abba") is True