diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 14:38:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 14:38:26 +0800 |
| commit | c00844aee4d9b607073ff123dfe2e872c9b84954 (patch) | |
| tree | 837c0973319b8d168db9ccd96d6ae113d29287e7 /src/nvim/testdir/test_user_func.vim | |
| parent | ec33edc7b7027b809ac0b496344367a451e3974a (diff) | |
| parent | 7b39ce36a4599539cd5cb07dad6bd980d30a3180 (diff) | |
| download | rneovim-c00844aee4d9b607073ff123dfe2e872c9b84954.tar.gz rneovim-c00844aee4d9b607073ff123dfe2e872c9b84954.tar.bz2 rneovim-c00844aee4d9b607073ff123dfe2e872c9b84954.zip | |
Merge pull request #20806 from zeertzjq/vim-8.2.0401
vim-patch:7.4.{1081,1097},8.2.{0401,0418}: eval tests
Diffstat (limited to 'src/nvim/testdir/test_user_func.vim')
| -rw-r--r-- | src/nvim/testdir/test_user_func.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_user_func.vim b/src/nvim/testdir/test_user_func.vim index c14624f5b4..13a0334cd3 100644 --- a/src/nvim/testdir/test_user_func.vim +++ b/src/nvim/testdir/test_user_func.vim @@ -87,6 +87,9 @@ func Test_user_func() call assert_fails("call extend(g:, {'max': function('min')})", 'E704') call assert_equal(3, max([1, 2, 3])) + " Try to overwrite an user defined function with a function reference + call assert_fails("let Expr1 = function('min')", 'E705:') + " Regression: the first line below used to throw ?E110: Missing ')'? " Second is here just to prove that this line is correct when not skipping " rhs of &&. |