0
0
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:
Bram Moolenaar
2020-03-30 19:32:53 +02:00
parent 7d333a900d
commit ca68ae1311
15 changed files with 488 additions and 31 deletions

View File

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