Skip to content

Conversation

@Hayden-J-C
Copy link
Contributor

Added Json5FileFormat

itzg
itzg previously approved these changes Apr 28, 2023
Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

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

Excellent, thanks!

@itzg
Copy link
Owner

itzg commented Apr 28, 2023

Hmm, test failed. Looks like I don't have it grabbing the test report on failure, so only have the line number of the failed assertion.

@Hayden-J-C
Copy link
Contributor Author

Huh, I ran gradlew clean build before opening the PR. I'll look into it

@itzg
Copy link
Owner

itzg commented Apr 29, 2023

Oh, I wonder if it's a Windows vs Linux line ending thing. I'm away from my computer, so I can't check, there might be an ignore line endings variant of assert.

@Hayden-J-C
Copy link
Contributor Author

Got a chance to look into it, I think it's the parser acts differently on windows vs linux. Windows inserts a new line character with '\r\n' while linux just uses '\n'. Gonna try updating the "expected-setInJson5.json5" file to use '\n' instead

Copy link
Owner

@itzg itzg left a comment

Choose a reason for hiding this comment

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

...and it still passes on Windows 😀

@itzg
Copy link
Owner

itzg commented Apr 29, 2023

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.

2 participants