Skip to content

Normalize line endings in GoalSerializerTest#64

Open
Darkforge317 wants to merge 1 commit into
Toofifty:masterfrom
Darkforge317:fix-gradlew-tests
Open

Normalize line endings in GoalSerializerTest#64
Darkforge317 wants to merge 1 commit into
Toofifty:masterfrom
Darkforge317:fix-gradlew-tests

Conversation

@Darkforge317

Copy link
Copy Markdown

Add a normalizeLineEndings helper to GoalSerializerTest to convert CRLF/CR to LF and handle null, and update assertions to compare normalized expected and actual serialized JSON.

This prevents platform-specific line-ending differences from causing gradlew test failures.

Add a normalizeLineEndings helper to GoalSerializerTest to convert CRLF/CR to LF and handle null, and update assertions to compare normalized expected and actual serialized JSON.

This prevents platform-specific line-ending differences from causing test failures.
@Darkforge317

Darkforge317 commented Jun 20, 2026

Copy link
Copy Markdown
Author

When I forked the repo, two tests were failing due to a mismatch between CRLF and LF line endings.
This would impact anyone with a Windows machine trying to contribute, assuming they run the tests of course...

Now they all pass.

image

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.

1 participant