mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.4581: null types not fully tested
Problem: Null types not fully tested. Solution: Add some more tests using null types.
This commit is contained in:
parent
21dc8f1527
commit
d597ab00d7
@ -2091,6 +2091,11 @@ def Test_expr8_list()
|
||||
var llstring: list<list<string>> = [['text'], []]
|
||||
llstring = [[], ['text']]
|
||||
llstring = [[], []]
|
||||
|
||||
var ls = [null_string]
|
||||
assert_equal('list<string>', typename(ls))
|
||||
var lb = [null_blob]
|
||||
assert_equal('list<blob>', typename(lb))
|
||||
END
|
||||
v9.CheckDefAndScriptSuccess(lines)
|
||||
|
||||
@ -2608,6 +2613,11 @@ def Test_expr8_dict()
|
||||
# comment to start fold is OK
|
||||
var x1: number #{{ fold
|
||||
var x2 = 9 #{{ fold
|
||||
|
||||
var ds = {k: null_string}
|
||||
assert_equal('dict<string>', typename(ds))
|
||||
var dl = {a: null_list}
|
||||
assert_equal('dict<list<unknown>>', typename(dl))
|
||||
END
|
||||
v9.CheckDefAndScriptSuccess(lines)
|
||||
|
||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4581,
|
||||
/**/
|
||||
4580,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user