Patch 8.2.2368
Problem:    Insufficient tests for setting options.
Solution:   Add a few tests. (Dominique Pellé, closes #7695)
Files:      src/testdir/test_options.vim


*** ../vim-8.2.2367/src/testdir/test_options.vim        2020-12-28 
15:41:37.171352372 +0100
--- src/testdir/test_options.vim        2021-01-17 13:46:42.042597066 +0100
***************
*** 371,378 ****
--- 371,384 ----
    call assert_fails('set foldmarker=x', 'E536:')
    call assert_fails('set commentstring=x', 'E537:')
    call assert_fails('set complete=x', 'E539:')
+   call assert_fails('set rulerformat=%-', 'E539:')
+   call assert_fails('set rulerformat=%(', 'E542:')
+   call assert_fails('set rulerformat=%15(%%', 'E542:')
+   call assert_fails('set statusline=%$', 'E539:')
    call assert_fails('set statusline=%{', 'E540:')
    call assert_fails('set statusline=%(', 'E542:')
+   call assert_fails('set statusline=%)', 'E542:')
+ 
    if has('cursorshape')
      " This invalid value for 'guicursor' used to cause Vim to crash.
      call assert_fails('set guicursor=i-ci,r-cr:h', 'E545:')
***************
*** 406,416 ****
    call assert_fails('set wildchar=<abc>', 'E474:')
    call assert_fails('set cmdheight=1a', 'E521:')
    call assert_fails('set invcmdheight', 'E474:')
!   if has('python') && has('python3')
      call assert_fails('set pyxversion=6', 'E474:')
    endif
    call assert_fails("let &tabstop='ab'", 'E521:')
    call assert_fails('set spellcapcheck=%\\(', 'E54:')
  endfunc
  
  func CheckWasSet(name)
--- 412,433 ----
    call assert_fails('set wildchar=<abc>', 'E474:')
    call assert_fails('set cmdheight=1a', 'E521:')
    call assert_fails('set invcmdheight', 'E474:')
!   if has('python') || has('python3')
      call assert_fails('set pyxversion=6', 'E474:')
    endif
    call assert_fails("let &tabstop='ab'", 'E521:')
    call assert_fails('set spellcapcheck=%\\(', 'E54:')
+   call assert_fails('set sessionoptions=curdir,sesdir', 'E474:')
+   call assert_fails('set foldmarker={{{,', 'E474:')
+   call assert_fails('set sessionoptions=sesdir,curdir', 'E474:')
+   call assert_fails('set listchars=trail:· ambiwidth=double', 'E834:')
+   set listchars&
+   call assert_fails('set fillchars=stl:· ambiwidth=double', 'E835:')
+   set fillchars&
+   call assert_fails('set fileencoding=latin1,utf-8', 'E474:')
+   set nomodifiable
+   call assert_fails('set fileencoding=latin1', 'E21:')
+   set modifiable&
  endfunc
  
  func CheckWasSet(name)
*** ../vim-8.2.2367/src/version.c       2021-01-17 13:21:14.962687183 +0100
--- src/version.c       2021-01-17 13:47:44.742531956 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2368,
  /**/

-- 
An error has occurred.  Hit any user to continue.

 /// Bram Moolenaar -- [email protected] -- 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    ///

-- 
-- 
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/202101171252.10HCqAiT574456%40masaka.moolenaar.net.

Raspunde prin e-mail lui