Patch 8.2.1803
Problem:    A few failures are not tested.
Solution:   Test a few failures. (Dominique Pellé, closes #7075)
Files:      src/testdir/test_arglist.vim, src/testdir/test_cmdline.vim,
            src/testdir/test_json.vim, src/testdir/test_listdict.vim


*** ../vim-8.2.1802/src/testdir/test_arglist.vim        2020-09-23 
22:38:01.503927513 +0200
--- src/testdir/test_arglist.vim        2020-10-05 20:06:00.221611722 +0200
***************
*** 426,431 ****
--- 426,432 ----
    call assert_fails('argdelete', 'E610:')
    call assert_fails('1,100argdelete', 'E16:')
    call assert_fails('argdel /\)/', 'E55:')
+   call assert_fails('1argdel 1', 'E474:')
  
    call Reset_arglist()
    args a b c d
***************
*** 478,490 ****
    new
    " redefine arglist; go to Xxx1
    next! Xxx1 Xxx2 Xxx3
!   " open window for all args
    all
    call assert_equal('test file Xxx1', getline(1))
    wincmd w
    wincmd w
    call assert_equal('test file Xxx1', getline(1))
-   " should now be in Xxx2
    rewind
    call assert_equal('test file Xxx2', getline(1))
  
--- 479,494 ----
    new
    " redefine arglist; go to Xxx1
    next! Xxx1 Xxx2 Xxx3
!   " open window for all args; Reading Xxx2 will change the arglist and the
!   " third window will get Xxx1:
!   "   win 1: Xxx1
!   "   win 2: Xxx2
!   "   win 3: Xxx1
    all
    call assert_equal('test file Xxx1', getline(1))
    wincmd w
    wincmd w
    call assert_equal('test file Xxx1', getline(1))
    rewind
    call assert_equal('test file Xxx2', getline(1))
  
*** ../vim-8.2.1802/src/testdir/test_cmdline.vim        2020-09-23 
22:38:01.503927513 +0200
--- src/testdir/test_cmdline.vim        2020-10-05 20:06:00.221611722 +0200
***************
*** 756,761 ****
--- 756,765 ----
    call feedkeys(":doautocmd User MyCmd a.c\<C-A>\<C-B>\"\<CR>", 'xt')
    call assert_equal("\"doautocmd User MyCmd a.c\<C-A>", @:)
  
+   " completion of autocmd group after comma
+   call feedkeys(":doautocmd BufNew,BufEn\<C-A>\<C-B>\"\<CR>", 'xt')
+   call assert_equal("\"doautocmd BufNew,BufEnter", @:)
+ 
    " completion for the :augroup command
    augroup XTest
    augroup END
*** ../vim-8.2.1802/src/testdir/test_json.vim   2020-08-12 18:50:31.879655802 
+0200
--- src/testdir/test_json.vim   2020-10-05 20:06:00.221611722 +0200
***************
*** 196,201 ****
--- 196,202 ----
    call assert_fails('call json_decode("{[]:42}")', "E491:")
  
    call assert_fails('call json_decode("-")', "E491:")
+   call assert_fails('call json_decode("-1x")', "E491:")
    call assert_fails('call json_decode("infinit")', "E491:")
  
    call assert_fails('call json_decode("\"\\u111Z\"")', 'E491:')
*** ../vim-8.2.1802/src/testdir/test_listdict.vim       2020-09-23 
22:38:01.503927513 +0200
--- src/testdir/test_listdict.vim       2020-10-05 20:06:00.221611722 +0200
***************
*** 726,731 ****
--- 726,733 ----
    call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E897:')
    call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E897:')
    call assert_fails("call reduce('', { acc, val -> acc + val }, 1)", 'E897:')
+   call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E117:')
+   call assert_fails("echo reduce(0z01, { acc, val -> 2 * acc + val }, '')", 
'E39:')
  
    let g:lut = [1, 2, 3, 4]
    func EvilRemove()
*** ../vim-8.2.1802/src/version.c       2020-10-05 19:23:56.216436744 +0200
--- src/version.c       2020-10-05 20:06:56.849461132 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     1803,
  /**/

-- 
Seen it all, done it all, can't remember most of it.

 /// 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/202010051809.095I9JpI2472505%40masaka.moolenaar.net.

Raspunde prin e-mail lui