diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-28 16:07:37 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-07-28 16:11:54 -0400 |
| commit | 98d389ce55f2436148ff3b2faed7fa0d4ab712af (patch) | |
| tree | f9280c29ef4b7b0d6edd233cfb4816c2e95ae1b2 /src/nvim/testdir/test_partial.vim | |
| parent | fe2ada737510b91655bda3aac4f6385de6410c0d (diff) | |
| download | rneovim-98d389ce55f2436148ff3b2faed7fa0d4ab712af.tar.gz rneovim-98d389ce55f2436148ff3b2faed7fa0d4ab712af.tar.bz2 rneovim-98d389ce55f2436148ff3b2faed7fa0d4ab712af.zip | |
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)
https://github.com/vim/vim/commit/f91aac5e3e3b8b1633d84eac2687ebbd76d8133b
Diffstat (limited to 'src/nvim/testdir/test_partial.vim')
| -rw-r--r-- | src/nvim/testdir/test_partial.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_partial.vim b/src/nvim/testdir/test_partial.vim index de5c26c2dd..590e18e024 100644 --- a/src/nvim/testdir/test_partial.vim +++ b/src/nvim/testdir/test_partial.vim @@ -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() |