def test_return_result_when_rooting_decimals(self): expected = 0.447 result = r.root(self.example4, 2) self.assertEqual(result, expected)
def test_case6(self): expected = 1 result = r.root(self.example6, 10) self.assertEqual(result, expected)
def test_result_when_rooting_value_greater_than_1(self): expected = 1.913 result = r.root(self.example2, 3) self.assertEqual(result, expected)
def test_case5(self): expected = 0 result = r.root(self.example5, 2) self.assertEqual(result, expected)
def test_case4(self): expected = 0.447 result = r.root(self.example4, 2) self.assertEqual(result, expected)
def test_case3(self): expected = 2.080 result = r.root(self.example3, 3) self.assertEqual(result, expected)
def test_case2(self): expected = 1.913 result = r.root(self.example2, 3) self.assertEqual(result, expected)
def test_case1(self): expected = 2.0 result = r.root(self.example1, 2) self.assertEqual(result, expected)