示例#1
0
 def test_palindrome4(self):
     "Negative test"
     assert exercises.palindrome("ac") is False
示例#2
0
 def test_palindrome2(self):
     "Tests Empty string"
     assert exercises.palindrome("") is True
示例#3
0
 def test_palindrome3(self):
     "Tests length 1 string"
     assert exercises.palindrome("a") is True
示例#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