changeset 22547:159a637fe5b4 v8.2.1822

patch 8.2.1822: list test doesn't fail Commit: https://github.com/vim/vim/commit/f57497276bc616d3856eeff9824c080941faa51b Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Oct 2020 16:45:03 +0200
parents c18df181a2ed
children 5d5ebd3413d6
files src/testdir/test_listdict.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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))
--- 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,