Beispiel #1
0
 def testIntegerPalindrome(self):
     actual_result = IntegerPalindromeFirstDraft().is_palindrome(
         12345654321)
     self.assertEqual(actual_result, True)
Beispiel #2
0
 def testNegativeIntegerPalindrome(self):
     actual_result = IntegerPalindromeFirstDraft().is_palindrome(-1)
     self.assertEqual(actual_result, False)
Beispiel #3
0
 def testFalseIntegerPalindrome(self):
     actual_result = IntegerPalindromeFirstDraft().is_palindrome(1234)
     self.assertEqual(actual_result, False)
Beispiel #4
0
 def testZeroIntegerPalindrome(self):
     actual_result = IntegerPalindromeFirstDraft().is_palindrome(0)
     self.assertEqual(actual_result, True)