1
0
forked from aniani/vim

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 #7428)
This commit is contained in:
Bram Moolenaar
2020-12-06 15:03:19 +01:00
parent 918a424917
commit 67322bf74a
5 changed files with 41 additions and 2 deletions

View File

@@ -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()