vim-patch:8.2.0183: tests fail when the float feature is disabled (#29738)

Problem:    Tests fail when the float feature is disabled.
Solution:   Skip tests that don't work without float support.

5feabe00c4

Cherry-pick Test_ruby_Vim_blob() from patch 8.1.0977 and skip it.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2024-07-16 14:25:35 +08:00
committed by GitHub
parent 37c7c7547a
commit 598fd77d95
4 changed files with 62 additions and 10 deletions

View File

@@ -217,7 +217,9 @@ 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}))
call assert_equal(5.0, {x -> {y -> x / y}}(10)(2.0))
if has('float')
call assert_equal(5.0, {x -> {y -> x / y}}(10)(2.0))
endif
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}))