Patch 8.2.0501

10 views
Skip to first unread message

Bram Moolenaar

unread,
Apr 2, 2020, 1:12:45 PM4/2/20
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages