0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-01-30 18:24:53 +01:00
parent 9f2d020d39
commit 5feabe00c4
22 changed files with 248 additions and 175 deletions

View File

@@ -19,7 +19,9 @@ endfunc
def Test_expr1()
assert_equal('one', true ? 'one' : 'two')
assert_equal('one', 1 ? 'one' : 'two')
assert_equal('one', 0.1 ? 'one' : 'two')
if has('float')
assert_equal('one', 0.1 ? 'one' : 'two')
endif
assert_equal('one', 'x' ? 'one' : 'two')
" assert_equal('one', 0z1234 ? 'one' : 'two')
assert_equal('one', [0] ? 'one' : 'two')