0
0
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:
Bram Moolenaar 2022-03-16 17:56:33 +00:00
parent 21dc8f1527
commit d597ab00d7
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4581,
/**/
4580,
/**/