Added test to reproduce case

Case is for file using CRLF endings
This commit is contained in:
Edoardo Bezzeccheri 2025-05-07 08:45:10 +00:00
parent 068f38ba74
commit c21246f34f

View file

@ -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'),