From 8e475e6fd4ea906d91f4c72ae04b7fe562e460e0 Mon Sep 17 00:00:00 2001 From: tachsin Date: Wed, 9 Sep 2026 00:09:39 +0300 Subject: [PATCH] fix(tests): stop CRLF translation from corrupting the codejam fixtures 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. --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..98bdd808 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# These fixtures are parsed byte for byte by tests/codejam-2017-a.rs, and the expected +# output is compared verbatim, so their line endings must survive checkout untouched. +tests/A-small-practice.in -text +tests/A-small-practice.out -text