aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_expr.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-15 19:16:19 +0800
committerGitHub <noreply@github.com>2023-08-15 19:16:19 +0800
commit842a47d6a4103a75e33c2c0023dbae5ad2c0f534 (patch)
tree9d1b92e4a36477bae40673233998ac8390a24a9b /test/old/testdir/test_expr.vim
parent7aad4643f9a6c2c3cc3033ae6dafef71036d3585 (diff)
downloadrneovim-842a47d6a4103a75e33c2c0023dbae5ad2c0f534.tar.gz
rneovim-842a47d6a4103a75e33c2c0023dbae5ad2c0f534.tar.bz2
rneovim-842a47d6a4103a75e33c2c0023dbae5ad2c0f534.zip
vim-patch:9.0.1704: Cannot use positional arguments for printf() (#24719)
Problem: Cannot use positional arguments for printf() Solution: Support positional arguments in string formatting closes: vim/vim#12140 https://github.com/vim/vim/commit/0c6181fec4c362eb9682d5af583341eb20cb1af5 Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
Diffstat (limited to 'test/old/testdir/test_expr.vim')
-rw-r--r--test/old/testdir/test_expr.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim
index 4cb8da8c74..bf1ba240eb 100644
--- a/test/old/testdir/test_expr.vim
+++ b/test/old/testdir/test_expr.vim
@@ -239,6 +239,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))