mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.2.0576: some errors are not covered by tests
Problem: Some errors are not covered by tests. Solution: Add a few more tests. (Dominique Pelle, closes #5920)
This commit is contained in:
@@ -373,8 +373,10 @@ 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("%s")', 'E766:')
|
||||
if has('float')
|
||||
call assert_fails('echo printf("%d", 1.2)', 'E805:')
|
||||
call assert_fails('echo printf("%f")')
|
||||
endif
|
||||
endfunc
|
||||
|
||||
|
Reference in New Issue
Block a user