mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.0522: several errors are not tested for
Problem: Several errors are not tested for. Solution: Add tests. (Yegappan Lakshmanan, closes #5892)
This commit is contained in:
@@ -1966,6 +1966,7 @@ func Test_range()
|
||||
execute "normal! a\<C-r>=[complete(col('.'), range(10)), ''][1]\<CR>"
|
||||
" complete_info()
|
||||
execute "normal! a\<C-r>=[complete(col('.'), range(10)), ''][1]\<CR>\<C-r>=[complete_info(range(5)), ''][1]\<CR>"
|
||||
call assert_fails('call complete(1, ["a"])', 'E785:')
|
||||
|
||||
" copy()
|
||||
call assert_equal([1, 2, 3], copy(range(1, 3)))
|
||||
|
Reference in New Issue
Block a user