]> granicus.if.org Git - vim/commitdiff
patch 8.2.1822: list test doesn't fail v8.2.1822
authorBram Moolenaar <Bram@vim.org>
Sat, 10 Oct 2020 14:42:39 +0000 (16:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 10 Oct 2020 14:42:39 +0000 (16:42 +0200)
Problem:    List test doesn't fail.
Solution:   Adjust the test for NULL list handling.

src/testdir/test_listdict.vim
src/version.c

index 54486ff49a057371a89ac67aeaef42f321587e1f..9085c6e006e7364c6eb150bd1e1dfbf244973c4d 100644 (file)
@@ -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))
index 8dabd6059706c74bfa6259bb589627f0e72ccc1d..e0bcc90129bf923d8e2292cc31d191c00a689237 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1822,
 /**/
     1821,
 /**/