1
0
forked from aniani/vim

patch 9.0.0491: no good reason to build without the float feature

Problem:    No good reason to build without the float feature.
Solution:   Remove configure check for float and "#ifdef FEAT_FLOAT".
This commit is contained in:
Bram Moolenaar
2022-09-17 21:08:33 +01:00
parent 1c3dd8ddcb
commit 73e28dcc61
74 changed files with 589 additions and 1152 deletions

View File

@@ -240,11 +240,9 @@ func Test_string_concatenation()
let a..=b
call assert_equal('ab', a)
if has('float')
let a = 'A'
let b = 1.234
call assert_equal('A1.234', a .. b)
endif
let a = 'A'
let b = 1.234
call assert_equal('A1.234', a .. b)
endfunc
" Test fix for issue #4507
@@ -266,10 +264,8 @@ func Test_string_concat_scriptversion2()
call assert_fails('let a .= b', 'E985:')
call assert_fails('let vers = 1.2.3', 'E488:')
if has('float')
let f = .5
call assert_equal(0.5, f)
endif
let f = .5
call assert_equal(0.5, f)
endfunc
scriptversion 1
@@ -283,9 +279,7 @@ func Test_string_concat_scriptversion1()
let vers = 1.2.3
call assert_equal('123', vers)
if has('float')
call assert_fails('let f = .5', 'E15:')
endif
call assert_fails('let f = .5', 'E15:')
endfunc
scriptversion 3