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 #108

Merged
merged 1 commit into from
Mar 22, 2016
Merged

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

merged 1 commit into from
Mar 22, 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 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

@@ -6,22 +6,15 @@ use Test::Exception;

my $module = $ENV{EXERCISM} ? 'Example' : 'Series';

plan tests => 13;
plan tests => 14;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is me noticing that I forgot to update that in #106 , so I had to make up for it.

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
@petertseng petertseng changed the title largest-series-product: Do not test digits/slices largest-series-product: Do not test slices Mar 13, 2016
kytrinyx added a commit that referenced this pull request Mar 22, 2016
largest-series-product: Do not test slices
@kytrinyx kytrinyx merged commit 4437154 into exercism:master Mar 22, 2016
@kytrinyx
Copy link
Member

Thanks @petertseng!

@petertseng petertseng deleted the lsp branch March 22, 2016 19:52
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