diff --git a/tests/unit/semantic_release/commit_parser/test_util.py b/tests/unit/semantic_release/commit_parser/test_util.py index 68bc65193..130a25581 100644 --- a/tests/unit/semantic_release/commit_parser/test_util.py +++ b/tests/unit/semantic_release/commit_parser/test_util.py @@ -7,11 +7,19 @@ "text, expected", [ ("", []), - ("\n\n \n\n \n", [" ", " "]), + ("\n\n \n\n \n", []), # Unix (LF) - empty lines + ("\r\n\r\n \r\n\r\n \n", []), # Windows (CRLF) - empty lines + ("\n\nA\n\nB\n", ["A", "B"]), # Unix (LF) + ("\r\n\r\nA\r\n\r\nB\n", ["A", "B"]), # Windows (CRLF) ( "Long\nexplanation\n\nfull of interesting\ndetails", ["Long explanation", "full of interesting details"], ), + ( + # Windows (CRLF) + "Long\r\nexplanation\r\n\r\nfull of interesting\r\ndetails", + ["Long explanation", "full of interesting details"], + ), ], ) def test_parse_paragraphs(text, expected):