comparison src/testdir/test_user_func.vim @ 19249:2a017e9dc6da v8.2.0183

patch 8.2.0183: tests fail when the float feature is disabled Commit: https://github.com/vim/vim/commit/5feabe00c47fa66d5f4c95213f150488433f78e3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 30 18:24:53 2020 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 Jan 2020 18:30:04 +0100
parents 9ffec4eb8d33
children c6c9d91d8290
comparison
equal deleted inserted replaced
19248:5e803caf5e9c 19249:2a017e9dc6da
119 func s:fcn(a, b=1, c) 119 func s:fcn(a, b=1, c)
120 endfunc 120 endfunc
121 endfunc 121 endfunc
122 122
123 func Test_default_arg() 123 func Test_default_arg()
124 call assert_equal(1.0, Log(10)) 124 if has('float')
125 call assert_equal(log(10), Log(10, exp(1))) 125 call assert_equal(1.0, Log(10))
126 call assert_fails("call Log(1,2,3)", 'E118') 126 call assert_equal(log(10), Log(10, exp(1)))
127 call assert_fails("call Log(1,2,3)", 'E118')
128 endif
127 129
128 let res = Args(1) 130 let res = Args(1)
129 call assert_equal(res.mandatory, 1) 131 call assert_equal(res.mandatory, 1)
130 call assert_equal(res.optional, v:null) 132 call assert_equal(res.optional, v:null)
131 call assert_equal(res['0'], 0) 133 call assert_equal(res['0'], 0)