Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed #1245 #1246

Merged
merged 2 commits into from
Apr 22, 2016
Merged

Fixed #1245 #1246

merged 2 commits into from
Apr 22, 2016

Conversation

oscargus
Copy link
Contributor

@oscargus oscargus commented Apr 19, 2016

This should fix #1245 so that it is possible to set empty strings is jstyle-files as key=""

@oscargus oscargus added [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers component: libre-office labels Apr 19, 2016
@tobiasdiez
Copy link
Member

LGTM but can you please add a test for the fix.

@oscargus
Copy link
Contributor Author

oscargus commented Apr 19, 2016 via email

@stefan-kolb
Copy link
Member

Could you please add a test for it so we can merge this in 😄 ? We already closed the related issue.

@oscargus
Copy link
Contributor Author

Done! Will merge when I see that the tests pass.

@@ -494,4 +494,26 @@ public void testCompareToNotEqual() throws IOException {
assertTrue(style1.compareTo(style2) > 0);
assertFalse(style2.compareTo(style1) > 0);
}


public void test1245AndOxfordComma() throws URISyntaxException, IOException {
Copy link
Member

@stefan-kolb stefan-kolb Apr 22, 2016

Choose a reason for hiding this comment

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

Dont call it 1245 please 😄 Name it by what it does check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I do not really know what it checks. ;-) (But I'll figure something out.)

Copy link
Member

Choose a reason for hiding this comment

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

Something with empty strings as values?! maybe the oxford comma is even a separate test case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was considering a separate test case, but it would (could) look exactly the same, so I thought it made more sense to have both in one.

@oscargus oscargus merged commit 7743ed6 into master Apr 22, 2016
@oscargus oscargus deleted the fix1245 branch April 22, 2016 19:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
component: libre-office [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jstyle files - improper handling of quotation marks
3 participants