comparison src/testdir/test_vim9_func.vim @ 25489:911fdca7f736 v8.2.3281

patch 8.2.3281: Vim9: TODO items in tests can be taken care of Commit: https://github.com/vim/vim/commit/23e2e115154ef0bf05d809024eed328a46ed0f82 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 3 21:16:18 2021 +0200 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 https://github.com/vim/vim/issues/8694)
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 Aug 2021 21:30:04 +0200
parents b8a6a0007dc3
children a84e75d73fde
comparison
equal deleted inserted replaced
25488:fbe646778e21 25489:911fdca7f736
2248 END 2248 END
2249 CheckScriptSuccess(lines) 2249 CheckScriptSuccess(lines)
2250 enddef 2250 enddef
2251 2251
2252 def Test_nested_inline_lambda() 2252 def Test_nested_inline_lambda()
2253 # TODO: use the "text" argument
2254 var lines =<< trim END 2253 var lines =<< trim END
2255 vim9script 2254 vim9script
2256 def F(text: string): func(string): func(string): string 2255 def F(text: string): func(string): func(string): string
2257 return (arg: string): func(string): string => ((sep: string): string => { 2256 return (arg: string): func(string): string => ((sep: string): string => {
2258 return sep .. arg 2257 return sep .. arg .. text
2259 }) 2258 })
2260 enddef 2259 enddef
2261 assert_equal('--there', F('unused')('there')('--')) 2260 assert_equal('--there++', F('++')('there')('--'))
2262 END 2261 END
2263 CheckScriptSuccess(lines) 2262 CheckScriptSuccess(lines)
2264 2263
2265 lines =<< trim END 2264 lines =<< trim END
2266 vim9script 2265 vim9script