-
Notifications
You must be signed in to change notification settings - Fork 38
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
Deriver: more tests and some fixes #208
Conversation
This looks good! 👍 I think it would be natural to fill out the two TODOs (tuples and records) with even just some very basic tests qcheck/test/core/QCheck_expect_test.ml Lines 232 to 236 in 57c9ba7
The weighted tests of variants and poly-variants seem to only test the "weight 0" case. |
I pushed proper tests for both tuples and records.
I do agree with you on these tests. However, my goal here is more to prove that |
👍
I see your point - I fear my last speculation ended up muddling the point, sorry. Let me try again: |
Yes, you are right.
The syntax ouput is actually tested in |
Sorry I had forgotten about those tests again! 😬 You are right. That "we already have a test for that"-moment must (almost) be a first time for QCheck! 😅 Good job @vch9! |
Thank you for the review.Thought, we merged fixups commits, this is not dramatic and I'm not sure squashing on master is a good idea for the historic. I'm used to work on GitLab where fixups commits automatically adds a |
I think #201 raised an issue: textual diff tests are not enough (thank you @bobot)
Therefore, I started writing tests using the derived generators, we can then ensure both:
Thank to these tests, I found little bugs in the code, fixed alongside the tests.
(Do not mind extra commits, it is for now rebased on #195, If someone review this before the merge of #195, you shouldreview commit by commit starting 7bf423b)