Skip to content

Fix a LF/CRLF bug causing test expr_eval fail#4

Open
Meredith2328 wants to merge 1 commit intotea-compiler:mainfrom
Meredith2328:main
Open

Fix a LF/CRLF bug causing test expr_eval fail#4
Meredith2328 wants to merge 1 commit intotea-compiler:mainfrom
Meredith2328:main

Conversation

@Meredith2328
Copy link
Copy Markdown

@Meredith2328 Meredith2328 commented Mar 27, 2026

When core.autocrlf is configured in Git or when running on Windows,
the expr_eval test reads tests/expr_eval/expr_eval.in and fails
if the file uses CRLF line endings (due to cloning or auto-conversion).

Pic1: expr_eval.in using CRLF, and the test failed
Pasted image 20260327185914

Pic2: expr_eval.in using LF, and the test passed
Pasted image 20260327185936

This pull request updates the .gitattributes file to enforce proper
line ending handling for test input files:

  • Added rule text=auto eol=lf for tests/expr_eval/expr_eval.in

@hxuhack hxuhack requested a review from Boreas618 March 28, 2026 03:49
@Boreas618
Copy link
Copy Markdown
Contributor

LGTM

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