def test_f(): found = funcs.f(2, 2) expected = 5 assert found == expected found = funcs.f(1, 1) expected = 3.5 assert found == expected found = funcs.f(3, 3) expected = ((3 * 3**2) + (4 * 3)) / (2 * 3) assert found == expected
def test_f_2(self): # Add code here. self.assertEqual(funcs.f(0), 0)
def test_f_1(self): # Add code here. self.assertEqual(funcs.f(1), 9)
def test_f_3(self): self.assertEqual(funcs.f(2), 32)
def test_f_1(self): # Add code here. REMOVE PASS self.assertEqual(funcs.f(5), 185)
def test_f_2(self): self.assertEquals(funcs.f(0), 0) pass
def test_f_1(self): self.assertEqual(funcs.f(1),9) pass
def test_f_1(self): self.assertEqual(funcs.f(3), 69)
def test_f_2(self): self.assertEqual(funcs.f(254), 452120)
def test_f_2(self): # Add code here. self.assertEqual(funcs.f(3.0), 69) self.assertEqual(funcs.g(67, -2), 4493) self.assertEqual(funcs.hypotenuse(4.7, 6.9), 8.3486525858967209) self.assertEqual(funcs.is_positive(-3.4123849394), False)
def test_f_1(self): self.assertEqual(funcs.f(1), 9) self.assertEqual(funcs.g(1,1), 2) self.assertEqual(funcs.hypotenuse(3,4), 5) self.assertEqual(funcs.is_positive(3.50), True)
def test_f(self): self.assertEqual(funcs.f(1), 9) self.assertEqual(funcs.f(2), 32) # Add code here. pass
def test_f_1(self): f_1 = funcs.f(1) self.assertEqual(f_1, 9)
def test_f_2(self): f_2 = funcs.f(2) self.assertEqual(f_2, 32)
def test_f_1(self): self.assertEqual(funcs.f(1), 9)
def test_f_2(self): self.assertEqual(f(2),32)
def test_f_1a(self): self.assertEqual(funcs.f(-100), 69800)
def test_f_1(self): self.assertEqual(f(0),0)
def test_f_2(self): self.assertEqual(funcs.f(2),32) pass
def test_f_2(self): # Add code here. REMOVE PASS self.assertEqual(funcs.f(0), 0)
def test_f_1(self): self.assertAlmostEqual(funcs.f(2), 32) self.assertAlmostEqual(funcs.f(5), 185)
def test_f_1(self): self.assertEqual(f(2), 32) self.assertEqual(f(3), 69)