mirror of
https://github.com/vim/vim.git
synced 2025-10-14 07:04:10 -04:00
patch 8.2.0275: some Ex code not covered by tests
Problem: Some Ex code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5659)
This commit is contained in:
@@ -965,4 +965,12 @@ func Test_winpos_errors()
|
||||
call assert_fails('winpos 10', 'E466:')
|
||||
endfunc
|
||||
|
||||
" Test for +cmd in a :split command
|
||||
func Test_split_cmd()
|
||||
split +set\ readonly
|
||||
call assert_equal(1, &readonly)
|
||||
call assert_equal(2, winnr('$'))
|
||||
close
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user