-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
test: add tests for calc, dice plugins #2503
Conversation
Is this intended to replace the tests generated by passing expected output to the Lines 14 to 21 in 7b74964
Lines 170 to 182 in 7b74964
|
I don't think I knew that the decorator tested the observed behavior this way! In that case, this can just be closed, it adds nothing they aren't already covering. |
It'd be cool to fill in the gaps, though. Stuff like empty-argument branches, exception handlers, and other error conditions (including within the aforementioned helper functions) are left out, if you're looking for some test improvements you can make to these plugins. 🙂 (Up to you whether that means adding more examples and making judicious use of the |
I suspect more examples can get the coverage up to somewhere we're happier with. Definitely don't want to replace the examples, they're useful documentation, and splitting between examples and tests seems kind of annoying. I'll have a look-see. |
Description
This changeset adds tests for the
calc, dice
plugins, inspired by discussion on #2464.Checklist
make qa
(runsmake quality
andmake test
)