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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211205132145.0064A1C0BD1%40moolenaar.net.

Raspunde prin e-mail lui