mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.0501: Vim9: script test fails when channel feature is missing
Problem: Vim9: script test fails when channel feature is missing. Solution: Add a has() condition.
This commit is contained in:
@@ -164,11 +164,13 @@ def Test_assignment()
|
|||||||
let thedict: dict<any>
|
let thedict: dict<any>
|
||||||
assert_equal({}, thedict)
|
assert_equal({}, thedict)
|
||||||
|
|
||||||
|
if has('channel')
|
||||||
let thejob: job
|
let thejob: job
|
||||||
assert_equal(test_null_job(), thejob)
|
assert_equal(test_null_job(), thejob)
|
||||||
|
|
||||||
let thechannel: channel
|
let thechannel: channel
|
||||||
assert_equal(test_null_channel(), thechannel)
|
assert_equal(test_null_channel(), thechannel)
|
||||||
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
func Test_assignment_failure()
|
func Test_assignment_failure()
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
501,
|
||||||
/**/
|
/**/
|
||||||
500,
|
500,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user