mirror of
https://github.com/neovim/neovim.git
synced 2026-03-06 09:07:15 +00:00
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 vim/vim#7428)
67322bf74a
This commit is contained in:
@@ -245,6 +245,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