mirror of
https://github.com/vim/vim.git
synced 2025-10-15 07:14:09 -04:00
patch 8.2.0482: channel and sandbox code not sufficiently tested
Problem: Channel and sandbox code not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan, closes #5855)
This commit is contained in:
@@ -121,6 +121,11 @@ func Test_prompt_garbage_collect()
|
||||
call feedkeys("\<CR>\<C-C>", 'xt')
|
||||
call assert_true(v:true)
|
||||
|
||||
call assert_fails("call prompt_setcallback(bufnr(), [])", 'E921:')
|
||||
call assert_equal(0, prompt_setcallback({}, ''))
|
||||
call assert_fails("call prompt_setinterrupt(bufnr(), [])", 'E921:')
|
||||
call assert_equal(0, prompt_setinterrupt({}, ''))
|
||||
|
||||
delfunc MyPromptCallback
|
||||
bwipe!
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user