-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix spacing of general (non-specific) tokens + tests #1222
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
Conversation
@@ -6,4 +6,7 @@ | |||
x+1 # | |||
@x | |||
x.y | |||
if x<=1: |
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.
This actually won't trigger the bug. It has to have a number on the left-hand side of the operator, e.g. if 1<=x:
. Maybe worth keeping this one and just adding another test?
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.
OK
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.
Done
|
||
test('Formatting space after open brace', async () => { | ||
const text = await formatAtPosition(11, 0); | ||
assert.equal(text, 'while(1)', 'Method definition with arguments was not formatted'); |
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.
This isn't a method definition so I think the comment of what failed isn't accurate.
} | ||
|
||
// In general, keep tokes separated |
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.
"tokens" and missing a period (couple of other comments are also missing periods).
@MikhailArkhipov did you mean to close this? |
Codecov Report
@@ Coverage Diff @@
## master #1222 +/- ##
=========================================
+ Coverage 71.91% 72.11% +0.2%
=========================================
Files 260 260
Lines 11933 11972 +39
Branches 2121 2134 +13
=========================================
+ Hits 8582 8634 +52
+ Misses 3221 3214 -7
+ Partials 130 124 -6
Continue to review full report at Codecov.
|
[skip ci]
Fixes #1096
This pull request: