Answered step by step
Verified Expert Solution
Question
1 Approved Answer
def test_addition(self):self.math = Math()self.assertEqual(self.math.addition(3, 4), 7)self.assertEqual(self.math.addition(-6, -5), -11)self.assertEqual(self.math.addition(-6, 4), -2)def test_subtraction(self):self.math = Math()self.assertEqual(self.math.subtraction(3, 4), -1)self.assertEqual(self.math.subtraction(-6, -5), -1)self.assertEqual(self.math.subtraction(-6, 4), -10)def test_multiplication(self):self.math = Math()self.assertEqual(self.math.multiplication(3, 4), 12)self.assertEqual(self.math.multiplication(-6, -5),
def test_addition(self):self.math = Math()self.assertEqual(self.math.addition(3, 4), 7)self.assertEqual(self.math.addition(-6, -5), -11)self.assertEqual(self.math.addition(-6, 4), -2)def test_subtraction(self):self.math = Math()self.assertEqual(self.math.subtraction(3, 4), -1)self.assertEqual(self.math.subtraction(-6, -5), -1)self.assertEqual(self.math.subtraction(-6, 4), -10)def test_multiplication(self):self.math = Math()self.assertEqual(self.math.multiplication(3, 4), 12)self.assertEqual(self.math.multiplication(-6, -5), 30)self.assertEqual(self.math.multiplication(-6, 4), -24)def test_division(self):self.math = Math()self.assertEqual(self.math.division(3, 4), 0.75)self.assertEqual(self.math.division(-6, -5), 1.2)self.assertEqual(self.math.division(-6, 4), -1.5)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started