mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Added test to reproduce case
Case is for file using CRLF endings
This commit is contained in:
parent
068f38ba74
commit
c21246f34f
1 changed files with 1 additions and 0 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue