Beispiel #1
0
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
Beispiel #2
0
 def test_f_2(self):
     # Add code here.
     self.assertEqual(funcs.f(0), 0)
Beispiel #3
0
 def test_f_1(self):
     # Add code here.
     self.assertEqual(funcs.f(1), 9)
Beispiel #4
0
 def test_f_3(self):
     self.assertEqual(funcs.f(2), 32)
Beispiel #5
0
 def test_f_1(self):
     # Add code here. REMOVE PASS
     self.assertEqual(funcs.f(5), 185)
Beispiel #6
0
 def test_f_2(self):
     self.assertEquals(funcs.f(0), 0)
     pass
Beispiel #7
0
 def test_f_1(self):
    self.assertEqual(funcs.f(1),9)
    
    pass
Beispiel #8
0
 def test_f_1(self):
    self.assertEqual(funcs.f(3), 69)
Beispiel #9
0
 def test_f_2(self):
    self.assertEqual(funcs.f(254), 452120)
Beispiel #10
0
 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)
Beispiel #11
0
 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)
Beispiel #12
0
   def test_f(self):
      self.assertEqual(funcs.f(1), 9)

      self.assertEqual(funcs.f(2), 32)
      # Add code here.
      pass
Beispiel #13
0
 def test_f_1(self):
     f_1 = funcs.f(1)
     self.assertEqual(f_1, 9)
Beispiel #14
0
 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)
Beispiel #19
0
 def test_f_2(self):
    self.assertEqual(funcs.f(2),32)
    pass
Beispiel #20
0
 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)
Beispiel #22
0
 def test_f_1(self):
     self.assertEqual(f(2), 32)
     self.assertEqual(f(3), 69)