diff options
author | kuuote <znmxodq1@gmail.com> | 2021-12-03 13:57:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-03 13:57:00 +0000 |
commit | 04b7b4bf7fe57375bf3c4ed3fd087fc0bb0147ba (patch) | |
tree | 5aeffd4b0b6e1c4b286488ab1ff28bd16db76452 /src/testdir/test_blob.vim | |
parent | c14b57c0795671bafca14433bc376acfe6135a3a (diff) | |
download | vim-git-04b7b4bf7fe57375bf3c4ed3fd087fc0bb0147ba.tar.gz |
patch 8.2.3728: internal error when passing range() to list2blob()v8.2.3728
Problem: Internal error when passing range() to list2blob().
Solution: Materialize the list first. (closes #9262)
Diffstat (limited to 'src/testdir/test_blob.vim')
-rw-r--r-- | src/testdir/test_blob.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim index 473886d68..bd816af4a 100644 --- a/src/testdir/test_blob.vim +++ b/src/testdir/test_blob.vim @@ -675,7 +675,10 @@ func Test_list2blob() let b = range(16)->repeat(64)->list2blob() call assert_equal(1024, b->len()) call assert_equal([4, 8, 15], [b[100], b[1000], b[1023]]) + call assert_equal(0z, list2blob(test_null_list())) + call assert_equal(0z00010203, list2blob(range(4))) endfunc + " vim: shiftwidth=2 sts=2 expandtab |