Mercurial > vim
comparison src/testdir/test_cursor_func.vim @ 16668:81be817c9d9a v8.1.1336
patch 8.1.1336: some eval functionality is not covered by tests
commit https://github.com/vim/vim/commit/17aca707f92235b6f962e637e8073162d18e6de2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 16 22:24:55 2019 +0200
patch 8.1.1336: some eval functionality is not covered by tests
Problem: Some eval functionality is not covered by tests.
Solution: Add a few more test cases. (Masato Nishihata, closes https://github.com/vim/vim/issues/4374)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 May 2019 22:30:06 +0200 |
parents | 126cdab63a83 |
children | 8a095d343c59 |
comparison
equal
deleted
inserted
replaced
16667:a9680e0ff089 | 16668:81be817c9d9a |
---|---|
22 call cursor(3, 0) | 22 call cursor(3, 0) |
23 call assert_equal([3, 1, 0, 1], getcurpos()[1:]) | 23 call assert_equal([3, 1, 0, 1], getcurpos()[1:]) |
24 " below last line goes to last line | 24 " below last line goes to last line |
25 call cursor(9, 1) | 25 call cursor(9, 1) |
26 call assert_equal([4, 1, 0, 1], getcurpos()[1:]) | 26 call assert_equal([4, 1, 0, 1], getcurpos()[1:]) |
27 | |
28 call setline(1, ["\<TAB>"]) | |
29 call cursor(1, 1, 1) | |
30 call assert_equal([1, 1, 1], getcurpos()[1:3]) | |
31 | |
32 call assert_equal(-1, cursor(-1, -1)) | |
27 | 33 |
28 quit! | 34 quit! |
29 endfunc | 35 endfunc |
30 | 36 |
31 " Very short version of what matchparen does. | 37 " Very short version of what matchparen does. |