diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-04 18:17:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-04 18:17:26 +0800 |
| commit | 24fa5f70edd4cc3b613237283ee7d63af1948c16 (patch) | |
| tree | c5d988415386a3d451afef6aa859a3c15889d3c4 /src/nvim/testdir/test_partial.vim | |
| parent | 04fbb1de4488852c3ba332898b17180500f8984e (diff) | |
| download | rneovim-24fa5f70edd4cc3b613237283ee7d63af1948c16.tar.gz rneovim-24fa5f70edd4cc3b613237283ee7d63af1948c16.tar.bz2 rneovim-24fa5f70edd4cc3b613237283ee7d63af1948c16.zip | |
vim-patch:8.2.0448: various functions not properly tested (#20926)
Problem: Various functions not properly tested.
Solution: Add more tests, especially for failures. (Yegappan Lakshmanan,
closes vim/vim#5843)
https://github.com/vim/vim/commit/0e05de46226eb4e5ea580beefa71831f92d613d3
Cherry-pick test changes from patch 8.2.0427 and skip Test_has().
Cherry-pick Test_complete_wildmenu() change from patch 8.2.4339.
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 8c90f21600..3020668f1b 100644 --- a/src/nvim/testdir/test_partial.vim +++ b/src/nvim/testdir/test_partial.vim @@ -82,6 +82,9 @@ func Test_partial_dict() let dict = {"tr": function('tr', ['hello', 'h', 'H'])} call assert_equal("Hello", dict.tr()) + + call assert_fails("let F=function('setloclist', 10)", "E923:") + call assert_fails("let F=function('setloclist', [], [])", "E922:") endfunc func Test_partial_implicit() @@ -354,3 +357,5 @@ func Test_compare_partials() call assert_true(F1 isnot# F1d1) " Partial /= non-partial call assert_true(d1.f1 isnot# d1.f1) " handle_subscript creates new partial each time endfunc + +" vim: shiftwidth=2 sts=2 expandtab |