-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
grains: Update tests to match canonical-data #1058
Conversation
@denislooby Thanks for you pull request! I'm not sure that removing the extra @N-Parsons thoughts? |
Yes, I was wondering about that.
But you could argue for both ways. |
Should there be a 1-1 mapping between test asserts and cases in the canonical-data or is it less rigid than that? |
@denislooby There's nothing wrong with multiple assertions in the same test case (for example: kindergarten-garden does this). |
@cmccandless I know multiple asserts in a test are ok, but should the canonical-data reflect all of them? |
@denislooby as long as the additional asserts are neither redundant nor contradictory to the canonical ones, I would say that they are fine. |
@cmccandless Ok good to know. In that case definitely the exception test cases should be added back. |
@denislooby I think simply restoring the exception test cases should be enough. |
@denislooby, thanks for your work on this. (This comment got long, so TL;DR: I'm happy to merge once you've added the exception tests back) I think that at the very least we should keep the exception tests for Adding back the other tests would mean that the functions are being tested more, which would normally be considered a good thing, but realistically, testing one valid value and 3 exceptional values should be sufficient to fully test implementations of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above.
@N-Parsons Changes done |
Thanks @denislooby! Sorry it took a while for me to get back to this. |
Resolves #996
Removes multiple total_after tests in favor of one at the end as specified in canonical-data.