diff --git a/exercises/practice/high-scores/.meta/example.py b/exercises/practice/high-scores/.meta/example.py index 48bfd03b370..fc86075255c 100644 --- a/exercises/practice/high-scores/.meta/example.py +++ b/exercises/practice/high-scores/.meta/example.py @@ -1,3 +1,4 @@ + def latest(scores): return scores[-1] @@ -8,11 +9,3 @@ def personal_best(scores): def personal_top_three(scores): return sorted(scores, reverse=True)[:3] - - -def latest_after_top_three(scores): - return latest(scores) - - -def scores_after_top_three(scores): - return scores diff --git a/exercises/practice/high-scores/.meta/tests.toml b/exercises/practice/high-scores/.meta/tests.toml index c81c228848b..ff40787cadb 100644 --- a/exercises/practice/high-scores/.meta/tests.toml +++ b/exercises/practice/high-scores/.meta/tests.toml @@ -35,6 +35,8 @@ description = "Top 3 scores -> Personal top when there is only one" [2df075f9-fec9-4756-8f40-98c52a11504f] description = "Top 3 scores -> Latest score after personal top scores" +include = false [809c4058-7eb1-4206-b01e-79238b9b71bc] description = "Top 3 scores -> Scores after personal top scores" +include = false diff --git a/exercises/practice/high-scores/high_scores.py b/exercises/practice/high-scores/high_scores.py index 327f81cf544..0d24cdb1c1d 100644 --- a/exercises/practice/high-scores/high_scores.py +++ b/exercises/practice/high-scores/high_scores.py @@ -8,11 +8,3 @@ def personal_best(scores): def personal_top_three(scores): pass - - -def latest_after_top_three(scores): - pass - - -def scores_after_top_three(scores): - pass diff --git a/exercises/practice/high-scores/high_scores_test.py b/exercises/practice/high-scores/high_scores_test.py index 629d1bdb152..d3495d6f96b 100644 --- a/exercises/practice/high-scores/high_scores_test.py +++ b/exercises/practice/high-scores/high_scores_test.py @@ -2,10 +2,8 @@ from high_scores import ( latest, - latest_after_top_three, personal_best, personal_top_three, - scores_after_top_three, ) # Tests adapted from `problem-specifications//canonical-data.json` @@ -46,13 +44,3 @@ def test_personal_top_when_there_is_only_one(self): scores = [40] expected = [40] self.assertEqual(personal_top_three(scores), expected) - - def test_latest_score_after_personal_top_scores(self): - scores = [70, 50, 20, 30] - expected = 30 - self.assertEqual(latest_after_top_three(scores), expected) - - def test_scores_after_personal_top_scores(self): - scores = [30, 50, 20, 70] - expected = [30, 50, 20, 70] - self.assertEqual(scores_after_top_three(scores), expected)