mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 7.4.2329
Problem: Error for min() and max() contains %s. (Nikolay Pavlov) Solution: Pass the function name. (closes #1040)
This commit is contained in:
@@ -335,6 +335,13 @@ function Test_printf_errors()
|
||||
call assert_fails('echo printf("%d", 1.2)', 'E805:')
|
||||
endfunc
|
||||
|
||||
function Test_max_min_errors()
|
||||
call assert_fails('call max(v:true)', 'E712:')
|
||||
call assert_fails('call max(v:true)', 'max()')
|
||||
call assert_fails('call min(v:true)', 'E712:')
|
||||
call assert_fails('call min(v:true)', 'min()')
|
||||
endfunc
|
||||
|
||||
function Test_printf_64bit()
|
||||
if has('num64')
|
||||
call assert_equal("123456789012345", printf('%d', 123456789012345))
|
||||
|
Reference in New Issue
Block a user