mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:8.2.2479: set/getbufline test fails without the job feature
Problem: set/getbufline test fails without the job feature.
Solution: Check whether the job feature is supported. (Dominique Pellé,
closes vim/vim#7790)
00385114db
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -40,11 +40,13 @@ func Test_setbufline_getbufline()
|
||||
call assert_equal([], getbufline(b, 6))
|
||||
call assert_equal([], getbufline(b, 2, 1))
|
||||
|
||||
call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
|
||||
call assert_equal(["function('eval')",
|
||||
\ "{'key': 123}",
|
||||
\ "no process"],
|
||||
\ getbufline(b, 2, 4))
|
||||
if has('job')
|
||||
call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()])
|
||||
call assert_equal(["function('eval')",
|
||||
\ "{'key': 123}",
|
||||
\ "no process"],
|
||||
\ getbufline(b, 2, 4))
|
||||
endif
|
||||
exe "bwipe! " . b
|
||||
endfunc
|
||||
|
||||
|
Reference in New Issue
Block a user