Skip to content

fix(tests): stop CRLF translation from corrupting the codejam fixtures - #809

Merged
samueltardieu merged 1 commit into
evenfurther:mainfrom
tachsin:fix/crlf-test-fixtures
Sep 9, 2026
Merged

fix(tests): stop CRLF translation from corrupting the codejam fixtures#809
samueltardieu merged 1 commit into
evenfurther:mainfrom
tachsin:fix/crlf-test-fixtures

Conversation

@tachsin

@tachsin tachsin commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Closes #805.

Marks tests/A-small-practice.in and tests/A-small-practice.out as binary, so their bytes survive checkout whatever the contributor's core.autocrlf setting is.

Only those two files are affected; everything else keeps its current behaviour. No source or test code changes.

tests/codejam-2017-a.rs parses A-small-practice.in byte for byte and compares
its output verbatim against A-small-practice.out. On a checkout with
core.autocrlf enabled, git rewrites both files and the two tests fail before
reading a single number:

    cannot read number of test cases: Parse(ParseIntError { kind: InvalidDigit })

Mark the two fixtures as binary so their bytes survive checkout.
@samueltardieu
samueltardieu added this pull request to the merge queue Sep 9, 2026
Merged via the queue into evenfurther:main with commit 85cec84 Sep 9, 2026
11 of 12 checks passed
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.

codejam-2017-a tests fail on any checkout that translates line endings

2 participants