diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-27 08:26:09 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-27 08:30:16 +0800 |
commit | bd122494cc3012a4885a55663e7c158c7a402878 (patch) | |
tree | d4f7c5006a813b0c1556e50c7bab1cea5876f8a3 /src/nvim/testdir/test_lambda.vim | |
parent | 245e6c5b305a0f32c39c88df8c0bf3c38505cc60 (diff) | |
download | rneovim-bd122494cc3012a4885a55663e7c158c7a402878.tar.gz rneovim-bd122494cc3012a4885a55663e7c158c7a402878.tar.bz2 rneovim-bd122494cc3012a4885a55663e7c158c7a402878.zip |
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)
https://github.com/vim/vim/commit/67322bf74a106b6476b093e75da87d61e2181b76
Diffstat (limited to 'src/nvim/testdir/test_lambda.vim')
-rw-r--r-- | src/nvim/testdir/test_lambda.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_lambda.vim b/src/nvim/testdir/test_lambda.vim index 3c12c7b02e..ce15243993 100644 --- a/src/nvim/testdir/test_lambda.vim +++ b/src/nvim/testdir/test_lambda.vim @@ -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() |