Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

largest-series-product: Do not test digits/slices #63

Merged
merged 2 commits into from
Mar 13, 2016
Merged

largest-series-product: Do not test digits/slices #63

merged 2 commits into from
Mar 13, 2016

Conversation

petertseng
Copy link
Member

The digits and slices functions are internal implementation details and
thus the test case for the largest-series-product problem should not be
concerned with testing them. The series tests could potentially be moved
to the series exercise (already implemented by this track).

Their presence may cause students to falsely think that their solution
has to use these two functions, instead of the alternative
implementation of only iterating through the digits once.

If it is desired to give hints on how to approach this problem (which
was one advantage of having the digits and slices tests), then consider
including a hints file and/or directory in the largest-series-product
directory.

This PR arises from discussion in
exercism/problem-specifications#192

The digits and slices functions are internal implementation details and
thus the test case for the largest-series-product problem should not be
concerned with testing them. The series tests could potentially be moved
to the series exercise (already implemented by this track).

Their presence may cause students to falsely think that their solution
has to use these two functions, instead of the alternative
implementation of only iterating through the digits once.

If it is desired to give hints on how to approach this problem (which
was one advantage of having the digits and slices tests), then consider
including a hints file and/or directory in the largest-series-product
directory.

This PR arises from discussion in
exercism/problem-specifications#192
These were tested via GetSlices previously, but they should also be
tested via GetLargestProduct. The GetSlices tests were removed in a
previous commit.
bressain added a commit that referenced this pull request Mar 13, 2016
largest-series-product: Do not test digits/slices
@bressain bressain merged commit 2677324 into exercism:master Mar 13, 2016
@petertseng petertseng deleted the lsp branch March 13, 2016 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants