示例#1
0
 def test_beyond_fence_1_positive(self):
     cursor = Cursor([[1]])
     cursor.advance()
     cursor.advance()
     self.assertTrue(cursor.beyond_fence())
示例#2
0
 def test_advance(self):
     cursor = Cursor([[1]])
     cursor.advance()
     self.assertEqual(cursor.position, (1, 0))
示例#3
0
 def test_beyond_fence_1_negative(self):
     cursor = Cursor([[1]])
     cursor.advance()
     self.assertFalse(cursor.beyond_fence())