Example #1
0
 def testToLinePrev(self):
     cursor = TextDocumentCursor(self.doc)
     self.assertFalse(cursor.toLinePrev())
     self.assertTrue(cursor.toLine(2))
     self.assertTrue(cursor.toLinePrev())
Example #2
0
 def testToLinePrev(self):
     cursor = TextDocumentCursor(self.doc)
     self.assertFalse(cursor.toLinePrev())
     self.assertTrue(cursor.toLine(2))
     self.assertTrue(cursor.toLinePrev())
Example #3
0
 def testToLine(self):
     cursor = TextDocumentCursor(self.doc)
     self.assertTrue(cursor.toLine(1))
     self.assertTrue(cursor.toLine(2))
     self.assertFalse(cursor.toLine(-1))
     self.assertFalse(cursor.toLine(30))
Example #4
0
 def testToLine(self):
     cursor = TextDocumentCursor(self.doc)
     self.assertTrue(cursor.toLine(1))
     self.assertTrue(cursor.toLine(2))
     self.assertFalse(cursor.toLine(-1))
     self.assertFalse(cursor.toLine(30))