Beispiel #1
0
 def test_max_of_three(self):
     answer4 = conditional.max_of_three(-10, 0, 10)
     self.assertEqual(answer4, 10)
     answer5 = conditional.max_of_three(9.7, 9.8, 9.9)
     self.assertEqual(answer5, 9.9)
     answer6 = conditional.max_of_three(4, 20, 70)
     self.assertEqual(answer6, 70)
Beispiel #2
0
    def test_case(self):
        # Add code here.
        self.assertEqual(conditional.max_101(2, 3), 3)
        self.assertEqual(conditional.max_101(4, 3), 4)
        self.assertEqual(conditional.max_101(5, 6), 6)
        self.assertEqual(conditional.max_of_three(4, 7, 8), 8)
        self.assertEqual(conditional.max_of_three(9, 4, 6), 9)

        self.assertEqual(conditional.max_of_three(2, 3, 4), 4)
        self.assertEqual(conditional.rental_late_fee(10), 7)
        self.assertEqual(conditional.rental_late_fee(24), 19)
        self.assertEqual(conditional.rental_late_fee(50), 100)
Beispiel #3
0
 def test_cases_max_of_three_2(self):
     self.assertEqual(conditional.max_of_three(2,44,1),44)
Beispiel #4
0
 def test_cases_max_of_three_1(self):
     self.assertEqual(conditional.max_of_three(3,2,1),3)
Beispiel #5
0
 def test_case2(self):
     self.assertEqual(conditional.max_of_three(4.0, 3, 9), 9)
Beispiel #6
0
 def test_case_three_2(self):
     self.assertEqual(conditional.max_of_three(500.12, 12.4, 16.7), 500.12)
Beispiel #7
0
 def test_max_of_three2(self):
    self.assertAlmostEqual(conditional.max_of_three(9,9,9), 9)
Beispiel #8
0
   def test_max_of_three_2(self):
	self.assertAlmostEqual(conditional.max_of_three(1.1,2.2,3.3),3.3)
 def test_max_3_2(self):
     max_3 = conditional.max_of_three(3, 4, 5)
     self.assertEqual(max_3, 5)
Beispiel #10
0
 def test_max_of_three4(self):
     self.assertAlmostEqual(
         conditional.max_of_three(40.4234, 40.2121, 40.1222), 40.4234)
Beispiel #11
0
 def test_max_of_three3(self):
     self.assertAlmostEqual(
         conditional.max_of_three(40.999, 50.0001, 48.992), 50.0001)
Beispiel #12
0
 def test_max_of_three2(self):
     self.assertAlmostEqual(
         conditional.max_of_three(40.432, 40.433, 40.431), 40.433)
Beispiel #13
0
 def test_max_of_three(self):
     self.assertAlmostEqual(conditional.max_of_three(40.999, 40.80, 42.98),
                            42.98)
 def test_case(self):
     self.assertEqual(conditional.max_of_three(10.5, 1.7, 4.3), 10.5)
     self.assertTrue(conditional.max_of_three(9.7, 8.3, 12.1), True)
     self.assertTrue(conditional.max_of_three(5.4, 6.2, 1.4), True)
Beispiel #15
0
 def test_case3(self):
     self.assertEqual(conditional.max_of_three(4, 6.0, 3), 6.0)
Beispiel #16
0
 def test_cases_max_of_three_3(self):
     self.assertEqual(conditional.max_of_three(2,1,51),51)
Beispiel #17
0
 def test_max_3_1(self):
     max_3 = conditional.max_of_three(2, 3, 4)
     self.assertEqual(max_3, 4)
Beispiel #18
0
 def test_max_of_three1(self):
    self.assertEqual(conditional.max_of_three(1, 50, -100), 50)
Beispiel #19
0
   def test_max_of_three_1(self):
	self.assertEqual(conditional.max_of_three(1,2,3),3)
	pass
Beispiel #20
0
 def test_max_of_three2(self):
    self.assertEqual(conditional.max_of_three(1.4, 1.5, 1.55), 1.55)
Beispiel #21
0
 def test_max_of_three1(self):
    self.assertAlmostEqual(conditional.max_of_three(5,6,7), 7)
Beispiel #22
0
 def test_case_3(self):
     n1 = 1.1
     n2 = 1.0
     n3 = 0.9
     self.assertEqual(conditional.max_of_three(n1, n2, n3), 1.1)
Beispiel #23
0
 def test_case_three_1(self):
     self.assertEqual(conditional.max_of_three(1.0, 3.5, 3.5), 3.5)
Beispiel #24
0
 def test_case_5(self):
     n1 = 1.0
     n2 = 0.9
     n3 = 1.1
     self.assertEqual(conditional.max_of_three(n1, n2, n3), 1.1)
Beispiel #25
0
 def test_case_three_3(self):
     self.assertEqual(conditional.max_of_three(2.2, 1000.01, 13.3), 1000.01)
 def test_max_of_three(self):
 	self.assertEqual(conditional.max_of_three(8,6,5),8)
 	self.assertEqual(conditional.max_of_three(2,5,4),5)
 	self.assertEqual(conditional.max_of_three(2,8,25),25)
 	self.assertEqual(conditional.max_of_three(64,23,45),64)