def test_is_int_palindrome(self):
     self.assertEqual(is_int_palindrome(1), True)
     self.assertEqual(is_int_palindrome(12), False)
     self.assertEqual(is_int_palindrome(44), True)
     self.assertEqual(is_int_palindrome(1010110101), True)
     self.assertEqual(is_int_palindrome(441), False)
     self.assertEqual(is_int_palindrome(12345678987654321), True)
Example #2
0
 def test_is_int_palindrome(self):
     self.assertTrue(is_int_palindrome(1))
     self.assertTrue(not is_int_palindrome(42))
     self.assertTrue(is_int_palindrome(100001))
     self.assertTrue(is_int_palindrome(999))
     self.assertTrue(not is_int_palindrome(123))
     self.assertTrue(is_int_palindrome(12344321))
 def test_is_int_palindrome(self):
     self.assertEqual(is_int_palindrome(1), True)
     self.assertEqual(is_int_palindrome(12), False)
     self.assertEqual(is_int_palindrome(44), True)
     self.assertEqual(is_int_palindrome(1010110101), True)
     self.assertEqual(is_int_palindrome(441), False)
     self.assertEqual(is_int_palindrome(12345678987654321), True)
Example #4
0
 def test_with_two_different_digits(self):
     self.assertEqual(False, solution.is_int_palindrome(42))
Example #5
0
 def test_with_many_digits_number(self):
     self.assertEqual(True, solution.is_int_palindrome(1000001))
Example #6
0
 def test_with_two_equal_third_not_digits(self):
     self.assertEqual(False, solution.is_int_palindrome(112))
 def test_false(self):
     self.assertFalse(solution.is_int_palindrome(43))
 def test_true_odd_digits(self):
     self.assertTrue(solution.is_int_palindrome(999))
 def test_is_int_palindrome(self):
     self.assertTrue(solution.is_int_palindrome(1))
     self.assertFalse(solution.is_int_palindrome(42))
     self.assertTrue(solution.is_int_palindrome(100001))
     self.assertTrue(solution.is_int_palindrome(999))
     self.assertFalse(solution.is_int_palindrome(123))
	def test_is_int_palindrome_1(self):
		self.assertEqual("True", solution.is_int_palindrome(1))
Example #11
0
 def test_with_numbers_with_even_number_of_digits(self):
     self.assertTrue(solution.is_int_palindrome(957759))
     self.assertFalse(solution.is_int_palindrome(1734003478))
Example #12
0
 def test_with_numbers_with_odd_number_of_digits(self):
     self.assertTrue(solution.is_int_palindrome(121))
     self.assertFalse(solution.is_int_palindrome(543212346))
Example #13
0
 def test_two(self):
     self.assertEquals(False, is_int_palindrome(42))
Example #14
0
 def test_one(self):
     self.assertEquals(True, is_int_palindrome(1))
Example #15
0
 def test_five(self):
     self.assertEquals(False, is_int_palindrome(123))
Example #16
0
 def test_vor(self):
     self.assertEquals(True, is_int_palindrome(999))
Example #17
0
 def test_tree(self):
     self.assertEquals(True, is_int_palindrome(100001))
Example #18
0
 def test_five(self):
     self.assertFalse(is_int_palindrome(123))
Example #19
0
 def test_two(self):
     self.assertFalse(is_int_palindrome(42))
Example #20
0
 def test_one(self):
     self.assertTrue(is_int_palindrome(1))
Example #21
0
 def test_with_single_digit_numbers(self):
     self.assertTrue(solution.is_int_palindrome(1))
     self.assertTrue(solution.is_int_palindrome(9))
Example #22
0
	def test_is_not_palindrome(self):
		self.assertTrue(not is_int_palindrome(42))
		self.assertTrue(not is_int_palindrome(123))
Example #23
0
 def test0(self):
     self.assertTrue(is_int_palindrome(1))
 def test_is_int_palindrome(self):
     self.assertEqual(True, is_int_palindrome(1))
     self.assertEqual(False, is_int_palindrome(42))
     self.assertEqual(True, is_int_palindrome(100001))
     self.assertEqual(True, is_int_palindrome(999))
     self.assertEqual(False, is_int_palindrome(123))
Example #25
0
 def testing_is_palindrome_big_number(self):
     self.assertTrue(is_int_palindrome(100001))
Example #26
0
 def testing_is_palindrome_three_equal_digit_int(self):
     self.assertTrue(is_int_palindrome(999))
 def test_true_one_digit(self):
     self.assertTrue(solution.is_int_palindrome(1))
Example #28
0
 def testing_is_palindrome_three_digit_int(self):
     self.assertFalse(is_int_palindrome(123))
 def test_true_even_digits(self):
     self.assertTrue(solution.is_int_palindrome(100001))
Example #30
0
 def testing_is_palindrome_one_digit_int(self):
     self.assertTrue(is_int_palindrome(100001))
Example #31
0
 def test_with_three_equal_digits(self):
     self.assertEqual(True, solution.is_int_palindrome(111))
Example #32
0
 def testing_is_palindrome_two_digit_int(self):
     self.assertFalse(is_int_palindrome(42))
Example #33
0
 def test_with_one_digit_number(self):
     self.assertEqual(True, solution.is_int_palindrome(1))
Example #34
0
 def test_two(self):
     self.assertFalse(is_int_palindrome(42))
Example #35
0
 def test_four(self):
     self.assertTrue(is_int_palindrome(999))
Example #36
0
 def test_three(self):
     self.assertTrue(is_int_palindrome(100001))
Example #37
0
 def test_one(self):
     self.assertTrue(is_int_palindrome(100001))
Example #38
0
 def test_four(self):
     self.assertTrue(is_int_palindrome(999))
	def test_is_int_palindrome_123(self):
		self.assertEqual("False", solution.is_int_palindrome(123))
Example #40
0
 def test_five(self):
     self.assertFalse(is_int_palindrome(123))
	def test_is_int_palindrome_42(self):
		self.assertEqual("False", solution.is_int_palindrome(42))
Example #42
0
 def test_is_int_palindrome(self):
     self.assertEqual(True, is_int_palindrome(1))
     self.assertEqual(False, is_int_palindrome(42))
     self.assertEqual(True, is_int_palindrome(100001))
     self.assertEqual(True, is_int_palindrome(999))
     self.assertEqual(False, is_int_palindrome(123))