예제 #1
0
 def test_personal_best(self):
     self.assertEqual(980, personal_best(self.high_scores_list))
예제 #2
0
 def test_gets_personal_best(self):
     self.assertEqual(105, personal_best(self.scores))
예제 #3
0
 def test_personal_best(self):
     self.assertEqual(20, personal_best(self.test_list))
     self.assertNotEqual(7, personal_best(self.test_list))
예제 #4
0
 def test_personal_best(self):
     self.assertEqual(900, personal_best(self.high_score))
예제 #5
0
 def test_personal_best(self):
     scores = [40, 100, 70]
     expected = 100
     self.assertEqual(expected, personal_best(scores))
 def tests_personal_best_score(self):
     best_score = personal_best(self.scores)
     self.assertEqual(7, best_score)
예제 #7
0
 def test_find_personal_best_score(self):
     self.assertEqual(100, personal_best(self.scores))
예제 #8
0
    def test_personal_best(self):

        # pass in scores list
        best_score = personal_best(self.scores)
        #  call personalBest to get highest score in list
        self.assertEqual(777, best_score)
 def test_personal_best(self):
     self.assertEqual(901, personal_best(self.scores))
예제 #10
0
 def test_personal_best(self):
     scores = [100, 0, 90, 30, 45, 10]
     expected = 100
     self.assertEqual(expected, personal_best(scores))