You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have format on save enabled on the grain extension and when i was trying to run tests for #1373 the formatter was reformatting the test files in a way that caused the tests to fail.
The above image shows the tests running fine when the extension is uninstalled and it cannot format.
When the formater is run it makes the changes above.
which causes the tests to fail.
i think it might be because before it is formated it is treated as 4 / a fraction. and after formatting it is treated as repeated division.
The text was updated successfully, but these errors were encountered:
phated
changed the title
Using The Grain Formatter Is Causing Code Behavour To Change
Grainfmt: Formatting causes math operations to change
Jul 27, 2022
I have format on save enabled on the grain extension and when i was trying to run tests for #1373 the formatter was reformatting the test files in a way that caused the tests to fail.
The above image shows the tests running fine when the extension is uninstalled and it cannot format.
When the formater is run it makes the changes above.
which causes the tests to fail.
i think it might be because before it is formated it is treated as 4 / a fraction. and after formatting it is treated as repeated division.
The text was updated successfully, but these errors were encountered: