def testToLinePrev(self):
     cursor = TextDocumentCursor(self.doc)
     self.assertFalse(cursor.toLinePrev())
     self.assertTrue(cursor.toLine(2))
     self.assertTrue(cursor.toLinePrev())
Beispiel #2
0
 def testToLinePrev(self):
     cursor = TextDocumentCursor(self.doc)
     self.assertFalse(cursor.toLinePrev())
     self.assertTrue(cursor.toLine(2))
     self.assertTrue(cursor.toLinePrev())
 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))
Beispiel #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))