From: Bram Moolenaar Date: Wed, 16 Mar 2022 17:56:33 +0000 (+0000) Subject: patch 8.2.4581: null types not fully tested X-Git-Tag: v8.2.4581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d597ab00d799aa078be32e6677e01a7582106105;p=vim patch 8.2.4581: null types not fully tested Problem: Null types not fully tested. Solution: Add some more tests using null types. --- diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim index 83cdab134..02ea54ada 100644 --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -2091,6 +2091,11 @@ def Test_expr8_list() var llstring: list> = [['text'], []] llstring = [[], ['text']] llstring = [[], []] + + var ls = [null_string] + assert_equal('list', typename(ls)) + var lb = [null_blob] + assert_equal('list', 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', typename(ds)) + var dl = {a: null_list} + assert_equal('dict>', typename(dl)) END v9.CheckDefAndScriptSuccess(lines) diff --git a/src/version.c b/src/version.c index fe974f6e9..fd6327922 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4581, /**/ 4580, /**/