aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_expr.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-13 13:41:30 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-02-13 13:47:29 -0500
commit6855a55d5360b524902b21d1c68077b8aa351768 (patch)
tree8be7a730392df4599c02dd1d0beb112724d0d43d /src/nvim/testdir/test_expr.vim
parent9860d14af367be03c9588beb39edf37c16c84375 (diff)
downloadrneovim-6855a55d5360b524902b21d1c68077b8aa351768.tar.gz
rneovim-6855a55d5360b524902b21d1c68077b8aa351768.tar.bz2
rneovim-6855a55d5360b524902b21d1c68077b8aa351768.zip
vim-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 vim/vim#5920) https://github.com/vim/vim/commit/067297e16a516838dbc46aaa9d8b1a507afec28d
Diffstat (limited to 'src/nvim/testdir/test_expr.vim')
-rw-r--r--src/nvim/testdir/test_expr.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_expr.vim b/src/nvim/testdir/test_expr.vim
index 7b90ba56e0..09d79979ce 100644
--- a/src/nvim/testdir/test_expr.vim
+++ b/src/nvim/testdir/test_expr.vim
@@ -399,7 +399,11 @@ 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("%d", 1.2)', 'E805:')
+ 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
function Test_max_min_errors()