From 17aca707f92235b6f962e637e8073162d18e6de2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 16 May 2019 22:24:55 +0200 Subject: 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 #4374) --- src/testdir/test_cursor_func.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/testdir/test_cursor_func.vim') diff --git a/src/testdir/test_cursor_func.vim b/src/testdir/test_cursor_func.vim index a41cc7d00..12319577c 100644 --- a/src/testdir/test_cursor_func.vim +++ b/src/testdir/test_cursor_func.vim @@ -25,6 +25,12 @@ func Test_move_cursor() call cursor(9, 1) call assert_equal([4, 1, 0, 1], getcurpos()[1:]) + call setline(1, ["\"]) + call cursor(1, 1, 1) + call assert_equal([1, 1, 1], getcurpos()[1:3]) + + call assert_equal(-1, cursor(-1, -1)) + quit! endfunc -- cgit v1.2.1