aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-10-09 10:35:04 +1100
committerNeil <nyamatongwe@gmail.com>2018-10-09 10:35:04 +1100
commit5f6858c44289bcafb9c9f0655fe9049619b36548 (patch)
tree5bc79fc52ffe25df9689a0857b1d070e63e58b44 /test/simpleTests.py
parent8cefe7a5183c83040782b5d3611d2f0ca4037b29 (diff)
downloadscintilla-mirror-5f6858c44289bcafb9c9f0655fe9049619b36548.tar.gz
Extra tests for out-of-range arguments.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index b1e8efdb7..d51908baf 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -273,6 +273,9 @@ class TestSimple(unittest.TestCase):
self.assertEquals(self.ed.GetLineEndPosition(1), 3)
self.assertEquals(self.ed.LineLength(0), 2)
self.assertEquals(self.ed.LineLength(1), 1)
+ # Test lines out of range.
+ self.assertEquals(self.ed.LineLength(2), 0)
+ self.assertEquals(self.ed.LineLength(-1), 0)
if sys.platform == "win32":
self.assertEquals(self.ed.EOLMode, self.ed.SC_EOL_CRLF)
else: