comparison 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
comparison
equal deleted inserted replaced
20040:d67b1b782594 20041:3601e816a569
371 function Test_printf_errors() 371 function Test_printf_errors()
372 call assert_fails('echo printf("%d", {})', 'E728:') 372 call assert_fails('echo printf("%d", {})', 'E728:')
373 call assert_fails('echo printf("%d", [])', 'E745:') 373 call assert_fails('echo printf("%d", [])', 'E745:')
374 call assert_fails('echo printf("%d", 1, 2)', 'E767:') 374 call assert_fails('echo printf("%d", 1, 2)', 'E767:')
375 call assert_fails('echo printf("%*d", 1)', 'E766:') 375 call assert_fails('echo printf("%*d", 1)', 'E766:')
376 call assert_fails('echo printf("%s")', 'E766:')
376 if has('float') 377 if has('float')
377 call assert_fails('echo printf("%d", 1.2)', 'E805:') 378 call assert_fails('echo printf("%d", 1.2)', 'E805:')
379 call assert_fails('echo printf("%f")')
378 endif 380 endif
379 endfunc 381 endfunc
380 382
381 function Test_max_min_errors() 383 function Test_max_min_errors()
382 call assert_fails('call max(v:true)', 'E712:') 384 call assert_fails('call max(v:true)', 'E712:')