def test_highest_to_lowest(self): scores = [1, 2, 3] self.assertEqual([3, 2, 1], personal_top_three(scores))
def test_personal_top_highest_to_lowest(self): scores = [20, 10, 30] expected = [30, 20, 10] self.assertEqual(expected, personal_top_three(scores))
def test_top_three(self): self.assertEqual([120, 325, 980], personal_top_three(self.high_scores_list))
def test_top_three_when_less_than_three(self): self.high_scores_list = [980, 325] self.assertEqual([325, 980], personal_top_three(self.high_scores_list))
def test_top_three_when_tie(self): top_three = [12, 22, 45, 55, 55] self.assertEqual([55, 55, 45], personal_top_three(top_three))
def test_top_3_when_only_one(self): score = [20] self.assertEqual([20], personal_top_three(score))
def test_can_find_top_three_when_tie(self): scores = [10, 10, 35, 2, 80] self.assertEqual([80, 35, 10], personal_top_three(scores))
def test_personal_top_when_there_is_only_one(self): scores = [40] expected = [40] self.assertEqual(expected, personal_top_three(scores))
def test_personal_top_three(self): top_three = personal_top_three(self.scores) self.assertEqual([777, 555, 444], top_three)
def test_can_find_top_three(self): self.assertEqual([100, 83, 59], personal_top_three(self.scores))
def test_top_three_when_only_one(self): scores = [100] self.assertEqual([100], personal_top_three(scores))
def test_top_three_when_less_than_three(self): scores = [99, 11] self.assertEqual([99, 11], personal_top_three(scores))
def test_top_three_tie(self): scores = [3, 1, 1, 3, 3, 2] self.assertEqual([3, 3, 3], personal_top_three(scores))
def test_personal_top_when_there_is_a_tie(self): scores = [40, 20, 40, 30] expected = [40, 40, 30] self.assertEqual(expected, personal_top_three(scores))
def test_can_find_top_three_when_only_two_scores(self): scores = [10, 28] self.assertEqual([28, 10], personal_top_three(scores))
def test_personal_top_when_there_are_less_than_3(self): scores = [30, 70] expected = [70, 30] self.assertEqual(expected, personal_top_three(scores))
def test_can_find_top_three_when_only_one_score(self): scores = [50] self.assertEqual([50], personal_top_three(scores))
def test_top_three_from_scores(self): self.assertEqual([105, 99, 88], personal_top_three(self.scores))
def test_personal_top_three(self): new_high_score = [900, 700, 600, 450, 400, 300] self.assertEqual([600, 700, 900], personal_top_three(self.high_score)) self.assertEqual([600, 700, 900], personal_top_three(new_high_score))
def test_top_three_when_less_than_three(self): new_scores = [43, 81] self.assertEqual([81, 43], personal_top_three(new_scores))
def test_top_three_if_tie(self): new_high_score = [300, 400, 450, 600, 600] self.assertEqual([450, 600, 600], personal_top_three(new_high_score))
def test_top_three(self): self.assertEqual([20, 10, 8], personal_top_three(self.test_list)) self.assertNotEqual([20, 10, 7], personal_top_three(self.test_list))
def test_top_three_when_less(self): new_high_score = [100] self.assertEqual([100], personal_top_three(new_high_score))
def test_top_three_tie(self): self.high_scores_list = [25, 325, 35, 44, 980, 325] self.assertEqual([325, 325, 980], personal_top_three(self.high_scores_list))
def test_personal_top_three_from_a_list_of_scores(self): scores = [10, 30, 90, 30, 100, 20, 10, 0, 30, 40, 40, 70, 70] expected = [100, 90, 70] self.assertEqual(expected, personal_top_three(scores))
def test_top_three_when_only_one(self): self.high_scores_list = [980] self.assertEqual([980], personal_top_three(self.high_scores_list))
def test_personal_top_three(self): self.assertEqual([901, 811, 765], personal_top_three(self.scores))