Lines Matching refs:get
212 " Test $win height (get and set window height)
229 " Test $win cursor (get and set cursor)
513 " Test with fewer replacing lines than replaced lines: lines get deleted.
519 " Test with more replacing lines than replaced lines: lines get added.
544 " Test $buf get (get line(s) from buffer)
550 call assert_equal('first line', TclEval('$buf get top'))
551 call assert_equal('first line', TclEval('$buf get begin'))
552 call assert_equal('last line', TclEval('$buf get bottom'))
553 call assert_equal('last line', TclEval('$buf get last'))
555 call assert_equal('first line', TclEval('$buf get 1'))
556 call assert_equal('two', TclEval('$buf get 2'))
557 call assert_equal('three', TclEval('$buf get 3'))
558 call assert_equal('last line', TclEval('$buf get 4'))
560 call assert_equal('two three', TclEval('$buf get 2 3'))
561 call assert_equal('two three', TclEval('$buf get 3 2'))
562 call assert_equal('three {last line}', TclEval('$buf get 3 last'))
564 call assert_fails('tcl $buf get -1', 'line number out of range')
565 call assert_fails('tcl $buf get 0', 'line number out of range')
566 call assert_fails('tcl $buf get 5', 'line number out of range')
567 call assert_fails('tcl $buf get 0 1', 'line number out of range')
569 call assert_fails('tcl $::vim::current(buffer) get x', 'expected integer but got "x"')
570 call assert_fails('tcl $::vim::current(buffer) get 1 x', 'expected integer but got "x"')
571 call assert_fails('tcl $::vim::current(buffer) get 1 1 1', 'wrong # args:')
577 " Test $buf mark (get position of a mark)