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 corner cases #106

Merged
merged 2 commits into from
Jan 29, 2016
Merged

largest-series-product corner cases #106

merged 2 commits into from
Jan 29, 2016

Conversation

petertseng
Copy link
Member

As part of the work to have consistency between tracks as in https://github.com/exercism/todo/issues/104 and https://github.com/exercism/todo/issues/13. Comments are in individual commit messages.

The original tests had tests for "" and 0.
This is when both inputs are the boundary condition.
Now we should also test when only one input is at the boundary.
So we should test a non-empty string with 0, and "" with a nonzero span.

These are consistent with the values defined in
https://github.com/exercism/x-common/blob/master/largest-series-product.json
In these cases, the result should be 0 as well. This guards against
solutions that assume the minimum is 1.
@kytrinyx
Copy link
Member

I think all the perl maintainers have drifted away. I'm going to go ahead and merge this.

kytrinyx added a commit that referenced this pull request Jan 29, 2016
largest-series-product corner cases
@kytrinyx kytrinyx merged commit 376c450 into exercism:master Jan 29, 2016
@petertseng petertseng deleted the lsp-corner branch January 29, 2016 23:28
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