Using first line to determine EOL

This commit is contained in:
Edoardo Bezzeccheri 2025-05-07 16:05:09 +00:00
parent 647959c4b4
commit 04de4f8042
2 changed files with 9 additions and 3 deletions

View file

@ -19,6 +19,7 @@ TESTS = (
(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\rbar', 1, b'foo\rbar\r'),
(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'),