diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-30 18:24:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-30 18:24:53 +0100 |
commit | 5feabe00c47fa66d5f4c95213f150488433f78e3 (patch) | |
tree | 9e9e980d294d8a3cc5c004f2733538cabef16d86 /src/testdir/test_lambda.vim | |
parent | 9f2d020d396132ecbc0be6faa1de29c7078bb5ac (diff) |
patch 8.2.0183: tests fail when the float feature is disabledv8.2.0183
Problem: Tests fail when the float feature is disabled.
Solution: Skip tests that don't work without float support.
Diffstat (limited to 'src/testdir/test_lambda.vim')
-rw-r--r-- | src/testdir/test_lambda.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_lambda.vim b/src/testdir/test_lambda.vim index c55de67b52..b8f11eae1d 100644 --- a/src/testdir/test_lambda.vim +++ b/src/testdir/test_lambda.vim @@ -216,7 +216,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})) |