aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/simpleTests.py6
1 files changed, 6 insertions, 0 deletions
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")