0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

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

@@ -247,6 +247,11 @@ func Test_closure_counter()
call assert_equal(2, l:F())
call assert_equal(3, l:F())
call assert_equal(4, l:F())
call assert_match("^\n function <SNR>\\d\\+_bar() closure"
\ .. "\n1 let x += 1"
\ .. "\n2 return x"
\ .. "\n endfunction$", execute('func s:bar'))
endfunc
func Test_closure_unlet()