mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 10:01:49 +00:00
vim-patch:8.1.1765: get(func, dict, def) does not work properly
Problem: get(func, dict, def) does not work properly.
Solution: Handle NULL dict better. (Takuya Fujiwara, closes vim/vim#4734)
f91aac5e3e
This commit is contained in:
@@ -285,6 +285,11 @@ func Test_get_partial_items()
|
||||
call assert_equal('MyDictFunc', get(Func, 'name'))
|
||||
call assert_equal([], get(Func, 'args'))
|
||||
call assert_true(empty( get(Func, 'dict')))
|
||||
|
||||
let P = function('substitute', ['hello there', 'there'])
|
||||
let dict = {'partial has': 'no dict'}
|
||||
call assert_equal(dict, get(P, 'dict', dict))
|
||||
call assert_equal(0, get(l:P, 'dict'))
|
||||
endfunc
|
||||
|
||||
func Test_compare_partials()
|
||||
|
||||
Reference in New Issue
Block a user