示例#1
0
 def testNull(self):
     self.assertEqual(isPalindrome("racecar"), True)
     self.assertTrue(isPalindrome("racecar"))
示例#2
0
 def testNull(self):
     self.assertEqual(isPalindrome("rabcr"), True)
     self.assertFalse(isPalindrome("rabcr"))
示例#3
0
 def test2(self):
     return self.assertEqual(isPalindrome("rabbit", False))
示例#4
0
 def testNull(self):
     return self.assertEqual(isPalindrome("1"), True)
     return self.assertTrue(isPalindrome("1"))
示例#5
0
 def test1(self):
     return self.assertEqual(isPalindrome("racecar"), True)