aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_lambda.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-16 14:25:35 +0800
committerGitHub <noreply@github.com>2024-07-16 06:25:35 +0000
commit598fd77d952364d4dd3433425afe9798dac15206 (patch)
tree71e27a8278791ab97f95f0e382a2fbbcb41c7811 /test/old/testdir/test_lambda.vim
parent37c7c7547a09cb6fb391f739d08290b782429494 (diff)
downloadrneovim-598fd77d952364d4dd3433425afe9798dac15206.tar.gz
rneovim-598fd77d952364d4dd3433425afe9798dac15206.tar.bz2
rneovim-598fd77d952364d4dd3433425afe9798dac15206.zip
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. https://github.com/vim/vim/commit/5feabe00c47fa66d5f4c95213f150488433f78e3 Cherry-pick Test_ruby_Vim_blob() from patch 8.1.0977 and skip it. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_lambda.vim')
-rw-r--r--test/old/testdir/test_lambda.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/old/testdir/test_lambda.vim b/test/old/testdir/test_lambda.vim
index 810b41b389..0340a7260b 100644
--- a/test/old/testdir/test_lambda.vim
+++ b/test/old/testdir/test_lambda.vim
@@ -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}))