Patch 8.2.2534
Problem:    Missing test coverage.
Solution:   Improve test coverage for completion with different encodings,
            mapset(), and term function failures. (Dominique Pellé,
            closes #7877)
Files:      src/testdir/test_edit.vim, src/testdir/test_maparg.vim,
            src/testdir/test_terminal3.vim


*** ../vim-8.2.2533/src/testdir/test_edit.vim   2020-10-26 21:39:09.119677673 
+0100
--- src/testdir/test_edit.vim   2021-02-20 19:16:03.417113139 +0100
***************
*** 680,702 ****
  
  func Test_edit_CTRL_N()
    " Check keyword completion
!   new
!   set complete=.
!   call setline(1, ['INFER', 'loWER', '', '', ])
!   call cursor(3, 1)
!   call feedkeys("Ai\<c-n>\<cr>\<esc>", "tnix")
!   call feedkeys("ILO\<c-n>\<cr>\<esc>", 'tnix')
!   call assert_equal(['INFER', 'loWER', 'i', 'LO', '', ''], getline(1, '$'))
!   %d
!   call setline(1, ['INFER', 'loWER', '', '', ])
!   call cursor(3, 1)
!   set ignorecase infercase
!   call feedkeys("Ii\<c-n>\<cr>\<esc>", "tnix")
!   call feedkeys("ILO\<c-n>\<cr>\<esc>", 'tnix')
!   call assert_equal(['INFER', 'loWER', 'infer', 'LOWER', '', ''], getline(1, 
'$'))
  
!   set noignorecase noinfercase complete&
!   bw!
  endfunc
  
  func Test_edit_CTRL_O()
--- 680,705 ----
  
  func Test_edit_CTRL_N()
    " Check keyword completion
!   for e in ['latin1', 'utf-8']
!     exe 'set encoding=' .. e
!     new
!     set complete=.
!     call setline(1, ['INFER', 'loWER', '', '', ])
!     call cursor(3, 1)
!     call feedkeys("Ai\<c-n>\<cr>\<esc>", "tnix")
!     call feedkeys("ILO\<c-n>\<cr>\<esc>", 'tnix')
!     call assert_equal(['INFER', 'loWER', 'i', 'LO', '', ''], getline(1, '$'), 
e)
!     %d
!     call setline(1, ['INFER', 'loWER', '', '', ])
!     call cursor(3, 1)
!     set ignorecase infercase
!     call feedkeys("Ii\<c-n>\<cr>\<esc>", "tnix")
!     call feedkeys("ILO\<c-n>\<cr>\<esc>", 'tnix')
!     call assert_equal(['INFER', 'loWER', 'infer', 'LOWER', '', ''], 
getline(1, '$'), e)
  
!     set noignorecase noinfercase complete&
!     bw!
!   endfor
  endfunc
  
  func Test_edit_CTRL_O()
*** ../vim-8.2.2533/src/testdir/test_maparg.vim 2020-09-29 21:45:37.524570542 
+0200
--- src/testdir/test_maparg.vim 2021-02-20 19:16:03.417113139 +0100
***************
*** 240,245 ****
--- 240,247 ----
    bwipe!
  
    call assert_fails('call mapset([], v:false, {})', 'E730:')
+   call assert_fails('call mapset("i", 0, "")', 'E716:')
+   call assert_fails('call mapset("i", 0, {})', 'E460:')
  endfunc
  
  func Check_ctrlb_map(d, check_alt)
*** ../vim-8.2.2533/src/testdir/test_terminal3.vim      2020-12-29 
20:53:28.299402080 +0100
--- src/testdir/test_terminal3.vim      2021-02-20 19:16:03.417113139 +0100
***************
*** 301,306 ****
--- 301,311 ----
      call assert_fails('let p = term_getansicolors([])', 'E745:')
      call assert_fails('call term_setansicolors([], [])', 'E745:')
    endif
+   let buf = term_start('echo')
+   call assert_fails('call term_setapi(' .. buf .. ', {})', 'E731:')
+   call assert_fails('call term_setkill(' .. buf .. ', {})', 'E731:')
+   call assert_fails('call term_setrestore(' .. buf .. ', {})', 'E731:')
+   exe buf . "bwipe!"
  endfunc
  
  " Test for sending various special keycodes to a terminal
*** ../vim-8.2.2533/src/version.c       2021-02-20 17:03:57.984112613 +0100
--- src/version.c       2021-02-20 19:20:00.152301800 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2534,
  /**/

-- 
TIM: But follow only if you are men of valour.  For the entrance to this cave
     is guarded by a monster, a creature so foul and cruel that no man yet has
     fought with it and lived.  Bones of full fifty men lie strewn about its
     lair ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/202102201822.11KIMRSL3019554%40masaka.moolenaar.net.

Raspunde prin e-mail lui