aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index e814f45ca..03deb566d 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -86,6 +86,12 @@ class TestSimple(unittest.TestCase):
self.assertEquals(self.ed.Anchor, 0)
self.assertEquals(self.ed.CurrentPos, 1)
+ def testBeyonEnd(self):
+ self.ed.AddText(1, b"x")
+ self.assertEquals(self.ed.GetLineEndPosition(0), 1)
+ self.assertEquals(self.ed.GetLineEndPosition(1), 1)
+ self.assertEquals(self.ed.GetLineEndPosition(2), 1)
+
def testSelection(self):
self.assertEquals(self.ed.CurrentPos, 0)
self.assertEquals(self.ed.Anchor, 0)