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])
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)
def testGS(self): self.assertEqual(solve([73, 67, 38, 33]), [75, 67, 40, 33])
def test_grades_two(self): self.assertEqual(solve([79, 69, 39, 30]), ([80, 70, 40, 30]))
def test_grades(self): self.assertEqual(solve([73, 67, 38, 33]), ([75, 67, 40, 33]))
def testTodosPasan(self): self.assertEqual(solve([57, 98, 40, 83]), [57, 100, 40, 85])
def testTuNoPasaras(self): self.assertEqual(solve([27, 20, 12, 33]), [27, 20, 12, 33])
def testNoRound(self): self.assertEqual(solve([97, 62, 57, 33]), [97, 62, 57, 33])