diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-29 00:34:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-29 00:34:47 +0200 |
| commit | 4213492231cc9b3ae900657d8ab88039f2f4eb91 (patch) | |
| tree | 05fc2e328a39d522146b09095289d3021d9b0314 /src/nvim/testdir/test_partial.vim | |
| parent | 00d915d02159037634f0f9628400648cc14da871 (diff) | |
| parent | b457a58e34d43d49a01dd93ec356099d232bd713 (diff) | |
| download | rneovim-4213492231cc9b3ae900657d8ab88039f2f4eb91.tar.gz rneovim-4213492231cc9b3ae900657d8ab88039f2f4eb91.tar.bz2 rneovim-4213492231cc9b3ae900657d8ab88039f2f4eb91.zip | |
Merge #10643 from janlazo/vim-8.1.1765
vim-patch:8.1.{990,992,1765}
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() |