From b5c30d35ee7e8bb3e0ad42a6e6881c2175fc3272 Mon Sep 17 00:00:00 2001 From: BethanyG Date: Sun, 28 Nov 2021 12:16:23 -0800 Subject: [PATCH 1/2] Skipped scores after personal top cases. Regenerated test file. Edited example.py to pass tests. --- exercises/practice/high-scores/.meta/example.py | 9 +-------- exercises/practice/high-scores/.meta/tests.toml | 2 ++ exercises/practice/high-scores/high_scores_test.py | 12 ------------ 3 files changed, 3 insertions(+), 20 deletions(-) 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_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) From 54abd54b9956d4af3984556d157300dbfc5b2e2e Mon Sep 17 00:00:00 2001 From: BethanyG Date: Sun, 28 Nov 2021 12:22:31 -0800 Subject: [PATCH 2/2] Re-edited stub file to omit excess function defs. --- exercises/practice/high-scores/high_scores.py | 8 -------- 1 file changed, 8 deletions(-) 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