From c21246f34f49dbd0e4b6d5b4e92a9b21e30395bf Mon Sep 17 00:00:00 2001 From: Edoardo Bezzeccheri Date: Wed, 7 May 2025 08:45:10 +0000 Subject: [PATCH] Added test to reproduce case Case is for file using CRLF endings --- tests/end_of_file_fixer_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/end_of_file_fixer_test.py b/tests/end_of_file_fixer_test.py index 8a5d889..05fdade 100644 --- a/tests/end_of_file_fixer_test.py +++ b/tests/end_of_file_fixer_test.py @@ -18,6 +18,7 @@ TESTS = ( (b'foo\n\n\n', 1, b'foo\n'), (b'\xe2\x98\x83', 1, b'\xe2\x98\x83\n'), (b'foo\r\n', 0, b'foo\r\n'), + (b'foo\r\nbar', 1, b'foo\r\nbar\r\n'), (b'foo\r\n\r\n\r\n', 1, b'foo\r\n'), (b'foo\r', 0, b'foo\r'), (b'foo\r\r\r\r', 1, b'foo\r'),