aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-11-12 09:18:20 +1100
committerNeil <nyamatongwe@gmail.com>2021-11-12 09:18:20 +1100
commit516dd7b28b8b14ad26824a89dd3ba4fffd04cabe (patch)
treed417164b74f20d79bc44f452fe5d489ca29b35a0 /test/simpleTests.py
parent5447b25f7b8092173876adc1d5680d73b00145a6 (diff)
downloadscintilla-mirror-516dd7b28b8b14ad26824a89dd3ba4fffd04cabe.tar.gz
Change SCI_GETTEXT, SCI_GETSELTEXT, and SCI_GETCURLINE to be more consistent
with other APIs with respect to buffer lengths.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 1761b2e07..71c35e8d0 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -128,7 +128,7 @@ class TestSimple(unittest.TestCase):
self.assertEquals(self.ed.SelectionStart, 1)
self.assertEquals(self.ed.SelectionEnd, 3)
result = self.ed.GetSelText(0)
- self.assertEquals(result, b"bc\0")
+ self.assertEquals(result, b"bc")
self.ed.ReplaceSel(0, b"1234")
self.assertEquals(self.ed.Length, 6)
self.assertEquals(self.ed.Contents(), b"a1234d")