0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.2.0293: various Ex commands not sufficiently tested

Problem:    Various Ex commands not sufficiently tested.
Solution:   Add more test cases. (Yegappan Lakshmanan, closes #5673)
This commit is contained in:
Bram Moolenaar
2020-02-21 17:54:45 +01:00
parent 09f28f49c9
commit 818fc9ad14
14 changed files with 198 additions and 7 deletions

View File

@@ -111,11 +111,14 @@ func Test_open_command()
close!
endfunc
func Test_Ex_feedkeys()
" this doesn't do anything useful, just check it doesn't hang
" Test for :g/pat/visual to run vi commands in Ex mode
" This used to hang Vim before 8.2.0274.
func Test_Ex_global()
new
call setline(1, ["foo"])
call feedkeys("Qg/foo/visual\<CR>", "xt")
call setline(1, ['', 'foo', 'bar', 'foo', 'bar', 'foo'])
call feedkeys("Qg/bar/visual\<CR>$rxQ$ryQvisual\<CR>j", "xt")
call assert_equal('bax', getline(3))
call assert_equal('bay', getline(5))
bwipe!
endfunc