예제 #1
0
 def test_getRecord(self):
     self.assertEqual(solve(self.grade), [91, 50, 23, 75, 90])
     self.assertEqual(solve(self.grade1), [3])
     self.assertEqual(solve(self.grade2), [0])
     self.assertEqual(solve(self.grade3), [85])
     self.assertEqual(solve(self.grade4),
                      [13, 71, 65, 100, 87, 47, 40, 56, 100, 5, 22, 33, 95])
예제 #2
0
    def test_breaking(self):
        self.assertEqual(solve(self.grades), self.salida)

        self.assertEqual(solve(self.grades1), self.salida1)
        self.assertEqual(solve(self.grades2), self.salida2)
예제 #3
0
 def testGS(self):
     self.assertEqual(solve([73, 67, 38, 33]), [75, 67, 40, 33])
예제 #4
0
 def test_grades_two(self):
     self.assertEqual(solve([79, 69, 39, 30]), ([80, 70, 40, 30]))
예제 #5
0
 def test_grades(self):
     self.assertEqual(solve([73, 67, 38, 33]), ([75, 67, 40, 33]))
예제 #6
0
 def testTodosPasan(self):
     self.assertEqual(solve([57, 98, 40, 83]), [57, 100, 40, 85])
예제 #7
0
 def testTuNoPasaras(self):
     self.assertEqual(solve([27, 20, 12, 33]), [27, 20, 12, 33])
예제 #8
0
 def testNoRound(self):
     self.assertEqual(solve([97, 62, 57, 33]), [97, 62, 57, 33])