aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_vimscript.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-26 13:05:33 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-26 13:41:31 +0800
commitd40739843cf9a160587032bf381c440079e5a8ce (patch)
tree8ad1768ff467a3468c48d74953071b7afcf25ddf /src/nvim/testdir/test_vimscript.vim
parentb4c250d37b7b53312b734f1dae6d9aed3942c563 (diff)
downloadrneovim-d40739843cf9a160587032bf381c440079e5a8ce.tar.gz
rneovim-d40739843cf9a160587032bf381c440079e5a8ce.tar.bz2
rneovim-d40739843cf9a160587032bf381c440079e5a8ce.zip
vim-patch:8.2.0401: not enough test coverage for evalvars.c
Problem: Not enough test coverage for evalvars.c. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5804) https://github.com/vim/vim/commit/8dfcce3a78ccb520cc9d09081f998091494c50bf Assert E475 instead of E474 in :redir test because a later patch changed the error number. Comment out the test for :echo with a deeply nested container as Nvim implements :echo very differently.
Diffstat (limited to 'src/nvim/testdir/test_vimscript.vim')
-rw-r--r--src/nvim/testdir/test_vimscript.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim
index 3487a028ca..ea3d15915a 100644
--- a/src/nvim/testdir/test_vimscript.vim
+++ b/src/nvim/testdir/test_vimscript.vim
@@ -1542,6 +1542,9 @@ func Test_delfunction_force()
endfunc
delfunc! Xtest
delfunc! Xtest
+
+ " Try deleting the current function
+ call assert_fails('delfunc Test_delfunction_force', 'E131:')
endfunc
" Test using bang after user command {{{1