forked from aniani/vim
patch 9.0.1704: Cannot use positional arguments for printf()
Problem: Cannot use positional arguments for printf() Solution: Support positional arguments in string formatting closes: #12140 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
This commit is contained in:
committed by
Christian Brabandt
parent
1688938dd5
commit
0c6181fec4
@@ -291,6 +291,8 @@ func Test_printf_misc()
|
||||
let lines =<< trim END
|
||||
call assert_equal('123', printf('123'))
|
||||
|
||||
call assert_equal('', printf('%'))
|
||||
call assert_equal('', printf('%.0d', 0))
|
||||
call assert_equal('123', printf('%d', 123))
|
||||
call assert_equal('123', printf('%i', 123))
|
||||
call assert_equal('123', printf('%D', 123))
|
||||
|
||||
Reference in New Issue
Block a user