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

patch 8.2.1724: Vim9: assignment tests spread out

Problem:    Vim9: assignment tests spread out.
Solution:   Create new test file for assignment tests.
This commit is contained in:
Bram Moolenaar
2020-09-21 22:21:42 +02:00
parent 280227270c
commit 971caf53b8
6 changed files with 697 additions and 680 deletions

View File

@@ -1687,18 +1687,6 @@ def Test_expr7_lambda_vim9script()
->map({_, v -> synIDattr(v, 'name')})->len()})
END
CheckScriptSuccess(lines)
# check if assign a lambda to a variable which type is func or any.
lines =<< trim END
vim9script
let FuncRef = {->123}
assert_equal(123, FuncRef())
let FuncRef_Func: func = {->123}
assert_equal(123, FuncRef_Func())
let FuncRef_Any: any = {->123}
assert_equal(123, FuncRef_Any())
END
CheckScriptSuccess(lines)
enddef
def Test_epxr7_funcref()