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

tournament: clarify behavior on invalid lines (ignore) #299

Merged
merged 1 commit into from
Jul 21, 2016
Merged

tournament: clarify behavior on invalid lines (ignore) #299

merged 1 commit into from
Jul 21, 2016

Conversation

petertseng
Copy link
Member

"Only accept" was a bit vague - this commit changes the mesage to say
that invalid line are ignored, and the tournament scored without them.

This is in line with the behavior of all current tracks. If reviewers
wish a change to this behavior, we can discuss that in a separate PR.

(Note that the go track is an exception, but it clearly states it is an
exception in its test suite visible to students)

Closes #286
Closes exercism/rust#122

"Only accept" was a bit vague - this commit changes the mesage to say
that invalid line are ignored, and the tournament scored without them.

This is in line with the behavior of all current tracks. If reviewers
wish a change to this behavior, we can discuss that in a separate PR.

(Note that the go track is an exception, but it clearly states it is an
exception in its test suite visible to students)

Closes #286
Closes exercism/rust#122
@petertseng petertseng merged commit a925fe6 into exercism:master Jul 21, 2016
@petertseng petertseng deleted the tournament-invalid branch July 21, 2016 18:03
@petertseng
Copy link
Member Author

To make it clear, I don't like silently ignoring invalid inputs.

I simply took the path of least resistance since it matched what all tracks were already doing.

Were I given time to respecify this exercise, I would require that invalid lines result in errors.

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.

1 participant