0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.1822: list test doesn't fail

Problem:    List test doesn't fail.
Solution:   Adjust the test for NULL list handling.
This commit is contained in:
Bram Moolenaar 2020-10-10 16:42:39 +02:00
parent 1a73923705
commit f57497276b
2 changed files with 6 additions and 2 deletions

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

View File

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