Closed
Description
The tournament exercise currently asks the implementation to silently ignore invalid lines.
I would say it is not good design for an API to silently ignore invalid inputs, as that may produce surprising results for users of that API.
It seems more helpful to have inputs containing invalid lines to be rejected (in whatever way is appropriate for the target language).
My recommendation is:
- change the description to state that input with invalid lines are rejected.
- change the cases in the canonical data to expect errors for inputs with invalid lines.
- I suggest that each test case contain only one invalid line, so that we can be sure that each individual invalid line is rejected. If a test case contained multiple invalid lines we might not be sure that an implementation would reject all invalid lines in that single case.