0
0
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:
Bram Moolenaar
2020-02-11 22:04:02 +01:00
parent 799439a5d8
commit 9f6277bdde
17 changed files with 399 additions and 46 deletions

View File

@@ -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