mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -04:00
patch 8.2.0243: insufficient code coverage for ex_docmd.c functions
Problem: Insufficient code coverage for ex_docmd.c functions. Solution: Add more tests. (Yegappan Lakshmanan, closes #5618)
This commit is contained in:
@@ -942,4 +942,18 @@ func Test_window_only()
|
||||
only!
|
||||
endfunc
|
||||
|
||||
" Test for errors with :wincmd
|
||||
func Test_wincmd_errors()
|
||||
call assert_fails('wincmd g', 'E474:')
|
||||
call assert_fails('wincmd ab', 'E474:')
|
||||
endfunc
|
||||
|
||||
" Test for errors with :winpos
|
||||
func Test_winpos_errors()
|
||||
if !has("gui_running") && !has('win32')
|
||||
call assert_fails('winpos', 'E188:')
|
||||
endif
|
||||
call assert_fails('winpos 10', 'E466:')
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user