def test_5014(self): self.assertEqual(is_palindrome(5014), False) time = timeit.timeit('is_palindrome(5014)', setup='from __main__ import is_palindrome', number=Tests.reps) print('test_given_5014 completed {} reps with {}s'.format( Tests.reps, time))
def test_given_1(self): self.assertEqual(is_palindrome(1112111), True) time = timeit.timeit('is_palindrome(1112111)', setup='from __main__ import is_palindrome', number=Tests.reps) print('test_given_1 completed {} reps with {}s'.format( Tests.reps, time))
def test2(self): self.assertEqual(is_palindrome(123456654321), True)
def test1(self): self.assertEqual(is_palindrome(1), True)
def test5(self): self.assertEqual(is_palindrome(1001001011001), False)
def test4(self): self.assertEqual(is_palindrome(43243), False)
def test3(self): self.assertEqual(is_palindrome(10302020301), True)