python icon indicating copy to clipboard operation
python copied to clipboard

test_round_scores() at Making the Grade accepts only the reversed list of rounded data

Open kbuc opened this issue 5 years ago • 4 comments

test_round_scores() at "Making the Grade" accepts only the reversed list of rounded data (https://github.com/kbuc/python/edit/main/exercises/concept/making-the-grade/loops_test.py). The focus of the exercise is to round the data in a given list. If the order of the rounded results is not important, (this should be stated in the exercise text!) it broadens the possible approaches (like using pop() in a loop to create rounded array, which would be reversed).

I suggest the test compares sorted arrays and is therefore not sensitive to results order.

Will make a PR.

kbuc avatar Sep 02 '21 19:09 kbuc

@kbuc - Thank you so much for logging this! Looking forward to the PR.

BethanyG avatar Sep 02 '21 19:09 BethanyG

Noting here that the exercise instructions should also be updated to say that the score order is unimportant. This can be done in the same PR, or left to a different one.

BethanyG avatar Sep 02 '21 19:09 BethanyG

There are 2 commits in the PR, one for the code and one for the instructions.

kbuc avatar Sep 02 '21 19:09 kbuc

Closed by #2527

BethanyG avatar Sep 02 '21 19:09 BethanyG