Patch 8.2.4900
Problem:    Vim9 expression test fails without the job feature.
Solution:   Add a check for the job feature. (Dominique Pellé, closes #10373)
Files:      src/testdir/test_vim9_expr.vim


*** ../vim-8.2.4899/src/testdir/test_vim9_expr.vim      2022-05-06 
17:53:02.685329543 +0100
--- src/testdir/test_vim9_expr.vim      2022-05-07 10:57:23.695926228 +0100
***************
*** 1463,1472 ****
    call v9.CheckDefAndScriptFailure(["var x = [13] =~ [88]"], 'Cannot compare 
list with list', 1)
    call v9.CheckDefAndScriptFailure(["var x = [13] !~ [88]"], 'Cannot compare 
list with list', 1)
  
!   call v9.CheckDefAndScriptFailure(['var j: job', 'var chan: channel', 'var r 
= j == chan'], 'Cannot compare job with channel', 3)
!   call v9.CheckDefAndScriptFailure(['var j: job', 'var x: list<any>', 'var r 
= j == x'], 'Cannot compare job with list', 3)
!   call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j 
== Xx'], 'Cannot compare job with func', 3)
!   call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = j 
== Xx'], 'Cannot compare job with func', 3)
  endfunc
  
  " test addition, subtraction, concatenation
--- 1463,1474 ----
    call v9.CheckDefAndScriptFailure(["var x = [13] =~ [88]"], 'Cannot compare 
list with list', 1)
    call v9.CheckDefAndScriptFailure(["var x = [13] !~ [88]"], 'Cannot compare 
list with list', 1)
  
!   if has('job')
!     call v9.CheckDefAndScriptFailure(['var j: job', 'var chan: channel', 'var 
r = j == chan'], 'Cannot compare job with channel', 3)
!     call v9.CheckDefAndScriptFailure(['var j: job', 'var x: list<any>', 'var 
r = j == x'], 'Cannot compare job with list', 3)
!     call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = 
j == Xx'], 'Cannot compare job with func', 3)
!     call v9.CheckDefAndScriptFailure(['var j: job', 'var Xx: func', 'var r = 
j == Xx'], 'Cannot compare job with func', 3)
!   endif
  endfunc
  
  " test addition, subtraction, concatenation
*** ../vim-8.2.4899/src/version.c       2022-05-07 10:49:07.024917180 +0100
--- src/version.c       2022-05-07 10:58:58.351737406 +0100
***************
*** 748,749 ****
--- 748,751 ----
  {   /* Add new patch number below this line */
+ /**/
+     4900,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
124. You begin conversations with, "Who is your internet service provider?"

 /// 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/20220507100109.1CDEC1C0463%40moolenaar.net.

Raspunde prin e-mail lui