From 5feabe00c47fa66d5f4c95213f150488433f78e3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 30 Jan 2020 18:24:53 +0100 Subject: patch 8.2.0183: tests fail when the float feature is disabled Problem: Tests fail when the float feature is disabled. Solution: Skip tests that don't work without float support. --- src/testdir/test_user_func.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/testdir/test_user_func.vim') diff --git a/src/testdir/test_user_func.vim b/src/testdir/test_user_func.vim index 4b4a2766f..d10a11084 100644 --- a/src/testdir/test_user_func.vim +++ b/src/testdir/test_user_func.vim @@ -121,9 +121,11 @@ func MakeBadFunc() endfunc func Test_default_arg() - call assert_equal(1.0, Log(10)) - call assert_equal(log(10), Log(10, exp(1))) - call assert_fails("call Log(1,2,3)", 'E118') + if has('float') + call assert_equal(1.0, Log(10)) + call assert_equal(log(10), Log(10, exp(1))) + call assert_fails("call Log(1,2,3)", 'E118') + endif let res = Args(1) call assert_equal(res.mandatory, 1) -- cgit v1.2.1