diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-04 21:42:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-04 21:42:36 +0200 |
commit | 26b84339fd8766898bcf6a259cbc2e0c38689726 (patch) | |
tree | f273eb017b4f89484ecc35ff8f4f4a346ad23559 /src/testdir/test_expr.vim | |
parent | f9e687e0681a250e1549ab27b6c7ef2c500395e3 (diff) | |
download | vim-git-26b84339fd8766898bcf6a259cbc2e0c38689726.tar.gz |
patch 7.4.2329v7.4.2329
Problem: Error for min() and max() contains %s. (Nikolay Pavlov)
Solution: Pass the function name. (closes #1040)
Diffstat (limited to 'src/testdir/test_expr.vim')
-rw-r--r-- | src/testdir/test_expr.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index 3097daf44..108ee508e 100644 --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim @@ -335,6 +335,13 @@ function Test_printf_errors() call assert_fails('echo printf("%d", 1.2)', 'E805:') endfunc +function Test_max_min_errors() + call assert_fails('call max(v:true)', 'E712:') + call assert_fails('call max(v:true)', 'max()') + call assert_fails('call min(v:true)', 'E712:') + call assert_fails('call min(v:true)', 'min()') +endfunc + function Test_printf_64bit() if has('num64') call assert_equal("123456789012345", printf('%d', 123456789012345)) |