diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-16 13:33:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-16 13:33:56 +0100 |
commit | f0cee1971f5258ce61f8a4e6a04d35c1e625bb01 (patch) | |
tree | 1d705533ffe8c6be585b26095c7ef593f784cd69 /src/testdir/test_marks.vim | |
parent | f4140488c72cad4dbf5449dba099cfa7de7bbb22 (diff) | |
download | vim-git-f0cee1971f5258ce61f8a4e6a04d35c1e625bb01.tar.gz |
patch 8.2.0261: some code not covered by testsv8.2.0261
Problem: Some code not covered by tests.
Solution: Add test cases. (Yegappan Lakshmanan, closes #5645)
Diffstat (limited to 'src/testdir/test_marks.vim')
-rw-r--r-- | src/testdir/test_marks.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_marks.vim b/src/testdir/test_marks.vim index 829f40dcb..24c8a4171 100644 --- a/src/testdir/test_marks.vim +++ b/src/testdir/test_marks.vim @@ -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 |