You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Considering that we just changed the test data in #717, adding a test case for invalid data, but also removing some more detailed information about the meaning of each type of invalid line, I am linking here the latest version of the file before the change, for convenience.
The information may be needed to generate the new test cases rejecting invalid data.
I thought about it. No complaints here. I'll see if there are any before officially changing the recommendation in the issue title.
To be clear, to me:
"Do not test invalid inputs" is only slightly preferred to "Test that invalid inputs are rejected", and both of those are strongly preferred to "Test that invalid inputs are ignored".
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:
The text was updated successfully, but these errors were encountered: