-
Notifications
You must be signed in to change notification settings - Fork 348
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
BigInteger mutator #518
BigInteger mutator #518
Conversation
This reverts commit 6dc09e5
…rMutator now mutates remainder.
Thanks for this - finally got chance to have a look over it yesterday. I agree this would be good to add in. In the longer term I think it might be possible to replace this with a more generalised method swap mutator, but that will require some changes to pitest to implement so it unlikely to happen soon. If you can fill in the holes in the test suite (at the moment the tests only demonstrate swapping a subset of the subsituted methods) I'll merge it in. |
We added tests for the rest of the methods. |
Thanks! It is not accessible as EXPERIMENTAL_BIG_INTEGER in the master branch |
My colleague and I added a new experimental mutator that mutates BigInteger methods in the same manner as the MathMutator does for ints and longs.
The mutator also swaps methods that are not present on the primitives:
We think this is a useful addition and would love to hear some feedback.
Note: The branch has BigDecimal in the name, but BigDecimal is much more complicated so we opted to do a test with BigInteger first.