diff src/testdir/test_expr.vim @ 20041:3601e816a569 v8.2.0576

patch 8.2.0576: some errors are not covered by tests Commit: https://github.com/vim/vim/commit/067297e16a516838dbc46aaa9d8b1a507afec28d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 13 19:55:50 2020 +0200 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 https://github.com/vim/vim/issues/5920)
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Apr 2020 20:00:05 +0200
parents b07672d13ff9
children e82996ad131f
line wrap: on
line diff
--- 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