To: vim_dev@googlegroups.com Subject: Patch 8.2.0905 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0905 Problem: Test coverage could be better. Solution: Add a couple of tests. (Dominique Pelle, closes #6202) Files: src/testdir/test_cmdline.vim, src/testdir/test_ga.vim *** ../vim-8.2.0904/src/testdir/test_cmdline.vim 2020-04-27 19:28:58.536998688 +0200 --- src/testdir/test_cmdline.vim 2020-06-04 22:43:12.556767593 +0200 *************** *** 1220,1225 **** --- 1220,1241 ---- call delete('Xresult') endfunc + " Test error: "E135: *Filter* Autocommands must not change current buffer" + func Test_cmd_bang_E135() + new + call setline(1, ['a', 'b', 'c', 'd']) + augroup test_cmd_filter_E135 + au! + autocmd FilterReadPost * help + augroup END + call assert_fails('2,3!echo "x"', 'E135:') + + augroup test_cmd_filter_E135 + au! + augroup END + %bwipe! + endfunc + " Test for using ~ for home directory in cmdline completion matches func Test_cmdline_expand_home() call mkdir('Xdir') *** ../vim-8.2.0904/src/testdir/test_ga.vim 2020-01-29 21:57:28.745607653 +0100 --- src/testdir/test_ga.vim 2020-06-04 22:43:12.556767593 +0200 *************** *** 25,30 **** --- 25,31 ---- " Test a few multi-bytes characters. call assert_equal("\n<é> 233, Hex 00e9, Oct 351, Digr e'", Do_ga('é')) call assert_equal("\n<ẻ> 7867, Hex 1ebb, Oct 17273, Digr e2", Do_ga('ẻ')) + call assert_equal("\n<\U00012345> 74565, Hex 00012345, Octal 221505", Do_ga("\U00012345")) " Test with combining characters. call assert_equal("\n 101, Hex 65, Octal 145 < ́> 769, Hex 0301, Octal 1401", Do_ga("e\u0301")) *** ../vim-8.2.0904/src/version.c 2020-06-04 22:22:07.865401775 +0200 --- src/version.c 2020-06-04 22:44:48.576421763 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 905, /**/ -- A KNIGHT rides into shot and hacks him to the ground. He rides off. We stay for a moment on the glade. A MIDDLE-AGED LADY in a C. & A. twin-set emerges from the trees and looks in horror at the body of her HUSBAND. MRS HISTORIAN: FRANK! "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 ///