def testSuccess(self): self.assertTrue(euler.isEven(2)) self.assertTrue(euler.isEven(4)) self.assertTrue(euler.isEven(998)) self.assertTrue(euler.isEven(1024))
def testFailure(self): self.assertFalse(euler.isEven(1)) self.assertFalse(euler.isEven(3)) self.assertFalse(euler.isEven(5)) self.assertFalse(euler.isEven(99)) self.assertFalse(euler.isEven(1344323))