diff options
author | Neil <nyamatongwe@gmail.com> | 2018-10-09 10:35:04 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-10-09 10:35:04 +1100 |
commit | 5f6858c44289bcafb9c9f0655fe9049619b36548 (patch) | |
tree | 5bc79fc52ffe25df9689a0857b1d070e63e58b44 | |
parent | 8cefe7a5183c83040782b5d3611d2f0ca4037b29 (diff) | |
download | scintilla-mirror-5f6858c44289bcafb9c9f0655fe9049619b36548.tar.gz |
Extra tests for out-of-range arguments.
-rw-r--r-- | test/simpleTests.py | 3 |
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: |