예제 #1
0
 def test_palindrome7(self):
     self.assertEqual(calc.isPalindrome("010"), True)
예제 #2
0
 def test_palindrome(self):
     self.assertEqual(calc.isPalindrome("aba"), True)
예제 #3
0
 def test_palindrome6(self):
     self.assertEqual(calc.isPalindrome("zabababaz"), True)
예제 #4
0
 def test_palindrome4(self):
     self.assertEqual(calc.isPalindrome(1), False)
예제 #5
0
def test_one():
    res = calc.isPalindrome("Cucumeber")
    assert res == False
예제 #6
0
def test_three():
    res = calc.isPalindrome("121")
    assert res == True
예제 #7
0
def test_two():
    res = calc.isPalindrome("aua")
    assert res == True