Skip to content
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

Test adjacent nested braces #44

Merged
merged 1 commit into from
Nov 29, 2020

Conversation

kevinoid
Copy link
Contributor

Nested braces should work correctly when they are adjacent at the start, end, or both. However, this was not handled correctly in editorconfig-core-py. This PR adds tests to cover this case.

I have confirmed that these tests all pass for editorconfig-core-c while 1, 3, 4, and 5 fail for editorconfig-core-py without editorconfig/editorconfig-core-py#33 and pass once applied.

Thanks for considering,
Kevin

Nested braces should work correctly when they are adjacent at the start,
end, or both.  However, this was not handled correctly in
editorconfig-core-py.  Add tests to cover.

I have confirmed that these tests all pass for editorconfig-core-c and
1, 3, 4, and 5 fail for editorconfig-core-py without
editorconfig/editorconfig-core-py#33 and pass once applied.

Signed-off-by: Kevin Locke <[email protected]>
Copy link
Member

@xuhdev xuhdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This seems like an oversight when creating nested tests.

@xuhdev xuhdev merged commit e407c15 into editorconfig:master Nov 29, 2020
@xuhdev
Copy link
Member

xuhdev commented Nov 29, 2020

Thanks!

@kevinoid
Copy link
Contributor Author

My pleasure. Thanks for reviewing and merging it so quickly @xuhdev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants