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

Update largest_series_product tests #471

Merged

Conversation

IanWhitney
Copy link
Contributor

  • Move the simplest case to the first test

Before this change the first test required students to implement the
'windowing' logic. By moving the test where span = input length to the
first test, the student can get to green faster and then implement the
windowing logic later.

  • Remove duplicate tests

The removed tests didn't introduce any new logic or edge cases, so I'm
removing them.

I think there's a case to be made for removing more of
the tests because one a student has implemented logic for handling a
span of 2 they probably don't need to do any work to handle larger
spans.

- Move the simplest case to the first test

Before this change the first test required students to implement the
'windowing' logic. By moving the test where span = input length to the
first test, the student can get to green faster and then implement the
windowing logic later.

- Remove duplicate tests

The removed tests didn't introduce any new logic or edge cases, so I'm
removing them.

I think there's a case to be made for removing more of
the tests because one a student has implemented logic for handling a
span of 2 they probably don't need to do any work to handle larger
spans.
Copy link
Contributor

@Insti Insti left a comment

Choose a reason for hiding this comment

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

Seems reasonable

@IanWhitney IanWhitney merged commit 107c441 into exercism:master Dec 12, 2016
@IanWhitney IanWhitney deleted the update_largest_series_product_tests branch December 12, 2016 02:10
emcoding pushed a commit that referenced this pull request Nov 19, 2018
[isogram] Eliminate trailing whitespace in test file.
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.

3 participants