summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_expr.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-13 19:55:50 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-13 19:55:50 +0200
commit067297e16a516838dbc46aaa9d8b1a507afec28d (patch)
tree1f5e5fca853cce622ac4efa9f08920259d5315b2 /src/testdir/test_expr.vim
parente3242346cf1c2ff8b0315cb2cb98e731bfa952c0 (diff)
patch 8.2.0576: some errors are not covered by testsv8.2.0576
Problem: Some errors are not covered by tests. Solution: Add a few more tests. (Dominique Pelle, closes #5920)
Diffstat (limited to 'src/testdir/test_expr.vim')
-rw-r--r--src/testdir/test_expr.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim
index ed8fa2bc01..39e719a9bf 100644
--- a/src/testdir/test_expr.vim
+++ b/src/testdir/test_expr.vim
@@ -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