diff src/testdir/test_functions.vim @ 23108:34a74f5f0fb4 v8.2.2100

patch 8.2.2100: insufficient testing for function range and dict Commit: https://github.com/vim/vim/commit/67322bf74a106b6476b093e75da87d61e2181b76 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 6 15:03:19 2020 +0100 patch 8.2.2100: insufficient testing for function range and dict Problem: Insufficient testing for function range and dict. Solution: Add a few tests. (Dominique Pell?, closes https://github.com/vim/vim/issues/7428)
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Dec 2020 15:15:04 +0100
parents 4ba6c5eebb28
children 2351b40af967
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -2099,6 +2099,7 @@ func Test_call()
   let mydict = {'data': [0, 1, 2, 3], 'len': function("Mylen")}
   eval mydict.len->call([], mydict)->assert_equal(4)
   call assert_fails("call call('Mylen', [], 0)", 'E715:')
+  call assert_fails('call foo', 'E107:')
 endfunc
 
 func Test_char2nr()