1
0
forked from aniani/vim

patch 8.2.0261: some code not covered by tests

Problem:    Some code not covered by tests.
Solution:   Add test cases. (Yegappan Lakshmanan, closes #5645)
This commit is contained in:
Bram Moolenaar
2020-02-16 13:33:56 +01:00
parent f4140488c7
commit f0cee1971f
11 changed files with 223 additions and 0 deletions

View File

@@ -212,4 +212,13 @@ func Test_lockmarks_with_put()
bwipe!
endfunc
" Test for :k command to set a mark
func Test_marks_k_cmd()
new
call setline(1, ['foo', 'bar', 'baz', 'qux'])
1,3kr
call assert_equal([0, 3, 1, 0], getpos("'r"))
close!
endfunc
" vim: shiftwidth=2 sts=2 expandtab