comparison src/testdir/test_marks.vim @ 19407:2f4be7ca1b1b v8.2.0261

patch 8.2.0261: some code not covered by tests Commit: https://github.com/vim/vim/commit/f0cee1971f5258ce61f8a4e6a04d35c1e625bb01 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 16 13:33:56 2020 +0100 patch 8.2.0261: some code not covered by tests Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5645)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Feb 2020 13:45:04 +0100
parents a51fee786930
children f70a3c1000bb
comparison
equal deleted inserted replaced
19406:9f499efdf2aa 19407:2f4be7ca1b1b
210 call assert_equal(3, line("']")) 210 call assert_equal(3, line("']"))
211 211
212 bwipe! 212 bwipe!
213 endfunc 213 endfunc
214 214
215 " Test for :k command to set a mark
216 func Test_marks_k_cmd()
217 new
218 call setline(1, ['foo', 'bar', 'baz', 'qux'])
219 1,3kr
220 call assert_equal([0, 3, 1, 0], getpos("'r"))
221 close!
222 endfunc
223
215 " vim: shiftwidth=2 sts=2 expandtab 224 " vim: shiftwidth=2 sts=2 expandtab