示例#1
0
 def test_max_101(self):
     answer1 = conditional.max_101(5, 20)
     self.assertEqual(answer1, 20)
     answer2 = conditional.max_101(-10, 0)
     self.assertEqual(answer2, 0)
     answer3 = conditional.max_101(99.2, 99.3)
     self.assertEqual(answer3, 99.3)
示例#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)
示例#3
0
 def test_max_of_two_2(self):
     max_of_two = conditional.max_101(8, 12)
     self.assertEqual(max_of_two, 12)
示例#4
0
 def test_max_of_two_1(self):
     max_of_two = conditional.max_101(10, 9)
     self.assertEqual(max_of_two, 10)
示例#5
0
 def test_cases_max_101_2(self):
     self.assertEqual(conditional.max_101(2,3),3)
示例#6
0
 def test_cases_max_101_1(self):
     self.assertEqual(conditional.max_101(3,2),3)
示例#7
0
 def test_case(self):
     self.assertEqual(conditional.max_101(4, 3), 4)
示例#8
0
 def test_case_101_1(self):
     self.assertEqual(conditional.max_101(10, 5), 10)
示例#9
0
 def test_max_101_2(self):
    self.assertAlmostEqual(conditional.max_101(9,9), 9)
示例#10
0
 def test_max_101_1(self):
    self.assertEqual(conditional.max_101(5, 2345), 2345)
示例#11
0
 def test_max_101_2(self):
     self.assertEqual(conditional.max_101(50, 40), 50)
示例#12
0
 def test_max_101(self):
     self.assertEqual(conditional.max_101(40, 50), 50)
示例#13
0
 def test_max_101(self):
     self.assertEqual(conditional.max_101(10, 2), 10)
     self.assertTrue(conditional.max_101(3, 15), True)
     self.assertTrue(conditional.max_101(3, 2), True)
示例#14
0
 def test_case1(self):
     self.assertEqual(conditional.max_101(4, 6), 6)
示例#15
0
 def test_max_101_1(self):
     self.assertEqual(conditional.max_101(1,2),2)	
     pass
示例#16
0
   def test_max_101_2(self):
	self.assertAlmostEqual(conditional.max_101(5.5,6.6),6.6)
	pass
示例#17
0
 def test_max_101_2(self):
    self.assertEqual(conditional.max_101(-234, -3215), -234)
示例#18
0
 def test_max_101_1(self):
    self.assertAlmostEqual(conditional.max_101(5,6), 6)
示例#19
0
 def test_case_1(self):
     n1 = 10
     n2 = 11
     self.assertEqual(conditional.max_101(n1, n2), 11)
示例#20
0
 def test_case_101_2(self):
     self.assertEqual(conditional.max_101(100, 100), 100)
示例#21
0
 def test_max_101(self):
    self.assertEqual(conditional.max_101(17,28),28)
    self.assertEqual(conditional.max_101(1232123,66454524),66454524)
    self.assertEqual(conditional.max_101(23.14,534.23),534.23)