-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: mark MathOnFloatProcessor
as incomplete
#866
Conversation
binaryOperator.setType(getFactory().Type().doublePrimitiveType()); | ||
} | ||
// We do not need to cast the type of the right hand operand as it is already a | ||
// double |
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.
@monperrus not related to autocompletion, but when I deleted the above code, the inline comment was suggested by co-pilot. 🤌🏼
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.
Unbelievable!
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.
crazy
MathOnFloatProcessor
as incompleteMathOnFloatProcessor
as incomplete
Please merge this once #868 is merged into this PR. |
dc5dcaf
to
8f4ce5c
Compare
…p repairs for Incomplete cases (#868) * Add test to verify that INCOMPLETE processor skip repairs * Assert that the repaired file compiles * Add docstrings * Add information about `INCOMPLETE` processor tests * Strengthen test
MathOnFloatProcessor
as incompleteMathOnFloatProcessor
as incomplete
That would be better if we could add a test to cover line 86 of this file: https://app.codecov.io/gh/SpoonLabs/sorald/compare/866/changes#D1L86 |
One of the ignored tests was bothering me for some time so I though I should fix it. It turned out that resolving the bug stated in #570 required some more dependent fixes and refactoring so I proceeded with them as well. Here is the summary of the list of changes in this PR.
MathOnFloatProcessor
is marked as incomplete. It won't attempt to repair when the expected type of theCtVariable
isfloat
as it produces a non-compilable output.double
, but that is not necessary as JVM implicitly does type coercion.