# HG changeset patch # User Bram Moolenaar # Date 1602341103 -7200 # Node ID 159a637fe5b4a308b0c5c79bad5d694bea6e3562 # Parent c18df181a2edbbbc2562fedd78535e530e90ca58 patch 8.2.1822: list test doesn't fail Commit: https://github.com/vim/vim/commit/f57497276bc616d3856eeff9824c080941faa51b Author: Bram Moolenaar Date: Sat Oct 10 16:42:39 2020 +0200 patch 8.2.1822: list test doesn't fail Problem: List test doesn't fail. Solution: Adjust the test for NULL list handling. diff --git a/src/testdir/test_listdict.vim b/src/testdir/test_listdict.vim --- a/src/testdir/test_listdict.vim +++ b/src/testdir/test_listdict.vim @@ -1007,8 +1007,10 @@ func Test_null_list() call assert_equal('[]', string(l)) call assert_equal(0, sort(l)) call assert_equal(0, uniq(l)) - call assert_fails("let k = [] + l", 'E15:') - call assert_fails("let k = l + []", 'E15:') + let k = [] + l + call assert_equal([], k) + let k = l + [] + call assert_equal([], k) call assert_equal(0, len(copy(l))) call assert_equal(0, count(l, 5)) call assert_equal([], deepcopy(l)) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1822, +/**/ 1821, /**/ 1820,