Patch 8.2.0501
Problem:    Vim9: script test fails when channel feature is missing.
Solution:   Add a has() condition.
Files:      src/testdir/test_vim9_script.vim


*** ../vim-8.2.0500/src/testdir/test_vim9_script.vim    2020-04-01 
23:05:15.275595403 +0200
--- src/testdir/test_vim9_script.vim    2020-04-02 19:10:29.111081246 +0200
***************
*** 164,174 ****
    let thedict: dict<any>
    assert_equal({}, thedict)
  
!   let thejob: job
!   assert_equal(test_null_job(), thejob)
  
!   let thechannel: channel
!   assert_equal(test_null_channel(), thechannel)
  enddef
  
  func Test_assignment_failure()
--- 164,176 ----
    let thedict: dict<any>
    assert_equal({}, thedict)
  
!   if has('channel')
!     let thejob: job
!     assert_equal(test_null_job(), thejob)
  
!     let thechannel: channel
!     assert_equal(test_null_channel(), thechannel)
!   endif
  enddef
  
  func Test_assignment_failure()
*** ../vim-8.2.0500/src/version.c       2020-04-02 18:50:42.431773081 +0200
--- src/version.c       2020-04-02 19:11:30.494837125 +0200
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     501,
  /**/

-- 
BEDEVERE:  Oooooh!
LAUNCELOT: No "Aaaaarrrrrrggghhh ... " at the back of the throat.
BEDEVERE:  No!  "Oooooh!" in surprise and alarm!
                 "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/202004021712.032HCc4C013387%40masaka.moolenaar.net.

Raspunde prin e-mail lui