mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
patch 8.2.3845: Vim9: test fails when the channel feature is missing
Problem: Vim9: test fails when the channel feature is missing. Solution: Check for the channel feature. (Dominique Pellé, closes #9368)
This commit is contained in:
committed by
Bram Moolenaar
parent
44a8977de4
commit
0dc4d8eaec
@@ -2027,7 +2027,9 @@ def Test_luaeval()
|
|||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_map()
|
def Test_map()
|
||||||
CheckDefAndScriptFailure2(['map(test_null_channel(), "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got channel', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
if has('channel')
|
||||||
|
CheckDefAndScriptFailure2(['map(test_null_channel(), "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got channel', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
||||||
|
endif
|
||||||
CheckDefAndScriptFailure2(['map(1, "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got number', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
CheckDefAndScriptFailure2(['map(1, "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got number', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
@@ -2144,7 +2146,9 @@ def Test_mapcheck()
|
|||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_mapnew()
|
def Test_mapnew()
|
||||||
CheckDefAndScriptFailure2(['mapnew(test_null_job(), "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got job', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
if has('channel')
|
||||||
|
CheckDefAndScriptFailure2(['mapnew(test_null_job(), "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got job', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
||||||
|
endif
|
||||||
CheckDefAndScriptFailure2(['mapnew(1, "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got number', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
CheckDefAndScriptFailure2(['mapnew(1, "1")'], 'E1013: Argument 1: type mismatch, expected list<any> but got number', 'E1228: List, Dictionary, Blob or String required for argument 1')
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
@@ -749,6 +749,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 */
|
||||||
|
/**/
|
||||||
|
3845,
|
||||||
/**/
|
/**/
|
||||||
3844,
|
3844,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user