Skip to content

Fix Windows test failures due to newline differences#12

Merged
walker84837 merged 2 commits intomainfrom
fix/windows-newline-handling
Mar 17, 2026
Merged

Fix Windows test failures due to newline differences#12
walker84837 merged 2 commits intomainfrom
fix/windows-newline-handling

Conversation

@walker84837
Copy link
Collaborator

On Windows, compiled programs output CRLF line endings (\r\n), but expected files use LF (\n), causing test failures.

This PR normalizes the expected output before comparison by converting all line endings to LF, making tests pass on both Windows and Unix-like OSes.

On Windows, compiled programs output CRLF line endings (\r\n), but
expected files use LF (\n), causing test failures.

This fix normalizes the expected output before comparison by converting
all line endings to LF, making tests pass on both Windows and Unix.
Refactor output assertion and normalize line endings.
@walker84837 walker84837 merged commit f0e7e78 into main Mar 17, 2026
3 checks passed
@walker84837 walker84837 deleted the fix/windows-newline-handling branch March 17, 2026 12:49
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