From 7c601c401a26d203d191b198a52e745f6a67c1fe Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Mar 2026 11:16:55 +1100 Subject: Bug [#2501]. Test to make sure #2501 stays fixed. --- test/simpleTests.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/simpleTests.py') diff --git a/test/simpleTests.py b/test/simpleTests.py index 0a14a4bdb..4205c7b3a 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -371,6 +371,12 @@ class TestSimple(unittest.TestCase): self.assertEqual(self.ed.Contents(), b"x" + lineEnds[lineEndType] + b"y") self.assertEqual(self.ed.LineLength(0), 1 + len(lineEnds[lineEndType])) + def testLineEndConversionLengthening(self): + # Bug #2501 + self.ed.AddText(4, b"x\ny\n") + self.ed.ConvertEOLs(self.ed.SC_EOL_CRLF) + self.assertEqual(self.ed.Contents(), b"x\r\ny\r\n") + # Several tests for unicode line ends U+2028 and U+2029 @unittest.skipUnless(unicodeLineEndsAvailable, "can not test Unicode line ends") -- cgit v1.2.3