Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Hard Decisions with decision tools

Authors: Robert Clemen, Terence Reilly

3rd edition

538797576, 978-0538797573

More Books

Students also viewed these Mathematics questions

Question

(a) Find the national income at equilibrium.

Answered: 1 week ago