1
0
forked from aniani/vim

patch 8.2.3281: Vim9: TODO items in tests can be taken care of

Problem:    Vim9: TODO items in tests can be taken care of.
Solution:   Update test for now working functionality. (closes #8694)
This commit is contained in:
Bram Moolenaar
2021-08-03 21:16:18 +02:00
parent 51ad850f5f
commit 23e2e11515
4 changed files with 8 additions and 21 deletions

View File

@@ -2250,15 +2250,14 @@ def Test_double_nested_lambda()
enddef
def Test_nested_inline_lambda()
# TODO: use the "text" argument
var lines =<< trim END
vim9script
def F(text: string): func(string): func(string): string
return (arg: string): func(string): string => ((sep: string): string => {
return sep .. arg
return sep .. arg .. text
})
enddef
assert_equal('--there', F('unused')('there')('--'))
assert_equal('--there++', F('++')('there')('--'))
END
CheckScriptSuccess(lines)