0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -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

@@ -369,7 +369,9 @@ function Test_printf_errors()
call assert_fails('echo printf("%d", [])', 'E745:')
call assert_fails('echo printf("%d", 1, 2)', 'E767:')
call assert_fails('echo printf("%*d", 1)', 'E766:')
call assert_fails('echo printf("%d", 1.2)', 'E805:')
if has('float')
call assert_fails('echo printf("%d", 1.2)', 'E805:')
endif
endfunc
function Test_max_min_errors()