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 slices #316

Merged
merged 1 commit into from
Mar 13, 2016
Merged

largest-series-product: Do not test slices #316

merged 1 commit into from
Mar 13, 2016

Conversation

petertseng
Copy link
Member

The slices functions is an internal implementation details and thus the
test case for the largest-series-product problem should not be concerned
with testing it.

Its presence may cause students to falsely think that their solution has
to use this function, instead of the alternative implementation of only
iterating through the digits once.

The series tests are already well-covered by the series exercise already
existing in this track.

If it is desired to give hints on how to approach this problem (which
was one advantage of having the slices test), 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 slices functions is an internal implementation details and thus the
test case for the largest-series-product problem should not be concerned
with testing it.

Its presence may cause students to falsely think that their solution has
to use this function, instead of the alternative implementation of only
iterating through the digits once.

The slices tests are already well-covered by the series exercise already
existing in this track.

If it is desired to give hints on how to approach this problem (which
was one advantage of having the slices test), 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
@behrtam
Copy link
Contributor

behrtam commented Mar 13, 2016

That totally makes sense. Thanks!

behrtam added a commit that referenced this pull request Mar 13, 2016
largest-series-product: Do not test slices
@behrtam behrtam merged commit 6035bd2 into exercism:master Mar 13, 2016
@petertseng petertseng deleted the lsp branch March 13, 2016 15:44
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