To: vim_dev@googlegroups.com Subject: Patch 8.2.3744 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3744 Problem: E854 is not tested; some spelling suggestions are not tested. Solution: Add a couple of tests. (Dominique Pellé, closes #9279) Files: src/testdir/test_options.vim, src/testdir/test_spell.vim *** ../vim-8.2.3743/src/testdir/test_options.vim 2021-11-21 11:35:59.456938797 +0000 --- src/testdir/test_options.vim 2021-12-05 13:17:19.794883818 +0000 *************** *** 136,141 **** --- 136,147 ---- set path& endfunc + func Test_path_too_long() + exe 'set path=' .. repeat('x', 10000) + call assert_fails('find x', 'E854:') + set path& + endfunc + func Test_signcolumn() CheckFeature signs call assert_equal("auto", &signcolumn) *** ../vim-8.2.3743/src/testdir/test_spell.vim 2021-11-04 15:46:01.031765172 +0000 --- src/testdir/test_spell.vim 2021-12-05 13:17:19.794883818 +0000 *************** *** 267,272 **** --- 267,277 ---- call assert_equal(['Third'], spellsuggest('THird', 1)) call assert_equal(['All'], spellsuggest('ALl', 1)) + " Special suggestion for repeated 'the the'. + call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the')) + call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the')) + call assert_inrange(0, 2, index(spellsuggest('The the', 3), 'The')) + call assert_fails("call spellsuggest('maxch', [])", 'E745:') call assert_fails("call spellsuggest('maxch', 2, [])", 'E745:') *** ../vim-8.2.3743/src/version.c 2021-12-05 13:02:47.028928408 +0000 --- src/version.c 2021-12-05 13:20:43.890511190 +0000 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 3744, /**/ -- Female engineers become irresistible at the age of consent and remain that way until about thirty minutes after their clinical death. Longer if it's a warm day. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///