From 067297e16a516838dbc46aaa9d8b1a507afec28d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 13 Apr 2020 19:55:50 +0200 Subject: 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 #5920) --- src/testdir/test_expr.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/testdir/test_expr.vim') diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index ed8fa2bc0..39e719a9b 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 -- cgit v1.2.1