Skip to content

Commit c21246f

Browse files
committed
Added test to reproduce case
Case is for file using CRLF endings
1 parent 068f38b commit c21246f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/end_of_file_fixer_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
(b'foo\n\n\n', 1, b'foo\n'),
1919
(b'\xe2\x98\x83', 1, b'\xe2\x98\x83\n'),
2020
(b'foo\r\n', 0, b'foo\r\n'),
21+
(b'foo\r\nbar', 1, b'foo\r\nbar\r\n'),
2122
(b'foo\r\n\r\n\r\n', 1, b'foo\r\n'),
2223
(b'foo\r', 0, b'foo\r'),
2324
(b'foo\r\r\r\r', 1, b'foo\r'),

0 commit comments

Comments
 (0)