To: vim_dev@googlegroups.com Subject: Patch 8.2.0576 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0576 Problem: Some errors are not covered by tests. Solution: Add a few more tests. (Dominique Pelle, closes #5920) Files: src/testdir/test_buffer.vim, src/testdir/test_digraph.vim, src/testdir/test_expr.vim, src/testdir/test_messages.vim *** ../vim-8.2.0575/src/testdir/test_buffer.vim 2020-03-22 14:41:19.167442574 +0100 --- src/testdir/test_buffer.vim 2020-04-13 19:53:43.795637652 +0200 *************** *** 155,158 **** --- 155,169 ---- %bwipe! endfunc + func Test_buffer_error() + new foo1 + new foo2 + + call assert_fails('buffer foo', 'E93:') + call assert_fails('buffer bar', 'E94:') + call assert_fails('buffer 0', 'E939:') + + %bwipe + endfunc + " vim: shiftwidth=2 sts=2 expandtab *** ../vim-8.2.0575/src/testdir/test_digraph.vim 2020-04-13 19:46:39.664500371 +0200 --- src/testdir/test_digraph.vim 2020-04-13 19:53:43.795637652 +0200 *************** *** 212,217 **** --- 212,219 ---- call assert_equal(['␀', 'ü', '∞', 'l'], getline(line('.')-3,line('.'))) call assert_fails('exe "digraph a\ 100"', 'E104:') call assert_fails('exe "digraph \a 100"', 'E104:') + call assert_fails('digraph xy z', 'E39:') + call assert_fails('digraph x', 'E474:') bw! endfunc *** ../vim-8.2.0575/src/testdir/test_expr.vim 2020-04-11 17:09:28.324426586 +0200 --- src/testdir/test_expr.vim 2020-04-13 19:53:43.795637652 +0200 *************** *** 373,380 **** --- 373,382 ---- 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 *** ../vim-8.2.0575/src/testdir/test_messages.vim 2020-04-08 21:50:18.876619651 +0200 --- src/testdir/test_messages.vim 2020-04-13 19:53:43.795637652 +0200 *************** *** 40,45 **** --- 40,47 ---- finally let &more = oldmore endtry + + call assert_fails('message 1', 'E474:') endfunction " Patch 7.4.1696 defined the "clearmode()" function for clearing the mode *** ../vim-8.2.0575/src/version.c 2020-04-13 19:46:39.664500371 +0200 --- src/version.c 2020-04-13 19:54:56.659480396 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 576, /**/ -- CART DRIVER: Bring out your dead! LARGE MAN: Here's one! CART DRIVER: Ninepence. BODY: I'm not dead! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///