def test_math_func1(self): x = 1 y = 1 answer1 = funcs.math_func1(x, y) self.assertAlmostEqual(answer1, 0.16666666666666) x = 2 y = 2 answer2 = funcs.math_func1(x, y) self.assertAlmostEqual(answer2, 0.94117647)
def test_math_func1(self): self.assertAlmostEqual(funcs.math_func1(2,2), 0.94117647) self.assertAlmostEqual(funcs.math_func1(3,3), 2.45454545)
def test_math_func1(self): self.assertAlmostEqual(funcs.math_func1(0,4),9.14285714286) self.assertEqual(funcs.math_func1(5,4),5.90625) pass
def test_math_func1(self): self.assertAlmostEqual(funcs.math_func1(1, 1), 0.16666666666666666) self.assertAlmostEqual(funcs.math_func1(0, 1), 0.142857143)
def test_math_func1(self): self.assertAlmostEqual(funcs.math_func1(1, 1), .16666666) self.assertEqual(funcs.math_func1(0, 0), 0) pass