def test_adding(self): add = Adder() for i in range(-10, 10): for j in range(-10, 10): self.assertEqual(i + j, add.calc(i, j))
def test_adding(self): adder = Adder() for x in range(-5, 10): for y in range(-5, 10): self.assertEqual(x + y, adder.calc(x, y))