0
0
mirror of https://github.com/vim/vim.git synced 2025-10-27 09:24:23 -04:00

patch 9.0.0498: various small issues

Problem:    Various small issues.
Solution:   Various small fixes.
This commit is contained in:
Bram Moolenaar
2022-09-18 13:06:41 +01:00
parent 9712ff1288
commit 747f110420
8 changed files with 30 additions and 28 deletions

View File

@@ -251,9 +251,7 @@ endfunc
func Test_lambda_combination()
call assert_equal(2, {x -> {x -> x}}(1)(2))
call assert_equal(10, {y -> {x -> x(y)(10)}({y -> y})}({z -> z}))
if has('float')
call assert_equal(5.0, {x -> {y -> x / y}}(10)(2.0))
endif
call assert_equal(5.0, {x -> {y -> x / y}}(10)(2.0))
call assert_equal(6, {x -> {y -> {z -> x + y + z}}}(1)(2)(3))
call assert_equal(6, {x -> {f -> f(x)}}(3)({x -> x * 2}))