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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user