diff --git a/exercises/high-scores/high_scores_test.py b/exercises/high-scores/high_scores_test.py index 17d69c0e15d..56fe7e393ab 100644 --- a/exercises/high-scores/high_scores_test.py +++ b/exercises/high-scores/high_scores_test.py @@ -47,6 +47,20 @@ def test_personal_top_three_when_there_is_only_one(self): expected = [40] self.assertEqual(HighScores(scores).personal_top_three(), expected) + def test_personal_top_three_does_not_break_latest(self): + scores = [20, 10, 30] + expected = 30 + high_scores = HighScores(scores) + high_scores.personal_top_three() + self.assertEqual(high_scores.latest(), expected) + + def test_personal_best_does_not_break_latest(self): + scores = [20, 30, 10] + expected = 10 + high_scores = HighScores(scores) + high_scores.personal_best() + self.assertEqual(high_scores.latest(), expected) + if __name__ == "__main__": unittest.main()