diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-13 19:55:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-13 19:55:50 +0200 |
commit | 067297e16a516838dbc46aaa9d8b1a507afec28d (patch) | |
tree | 1f5e5fca853cce622ac4efa9f08920259d5315b2 /src/testdir/test_expr.vim | |
parent | e3242346cf1c2ff8b0315cb2cb98e731bfa952c0 (diff) | |
download | vim-git-067297e16a516838dbc46aaa9d8b1a507afec28d.tar.gz |
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.vim | 2 |
1 files changed, 2 insertions, 0 deletions
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 |