aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_blob.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-26 19:53:54 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-26 20:53:39 +0800
commitef363ed37cdf5c460cca840aebc825011e0294ee (patch)
tree89c7ba09fdc61ce8a526a3da9feac1c7324e97b0 /src/nvim/testdir/test_blob.vim
parentcfccae95844db21aad773c9a8f8b636f53d6c8c4 (diff)
downloadrneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.tar.gz
rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.tar.bz2
rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.zip
vim-patch:8.2.0619: null dict is not handled like an empty dict
Problem: Null dict is not handled like an empty dict. Solution: Fix the code and add tests. (Yegappan Lakshmanan, closes vim/vim#5968) https://github.com/vim/vim/commit/ea04a6e8baff2f27da7cdd54bf70a5525994f76d Nvim doesn't support modifying NULL list, so comment out a line.
Diffstat (limited to 'src/nvim/testdir/test_blob.vim')
-rw-r--r--src/nvim/testdir/test_blob.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_blob.vim b/src/nvim/testdir/test_blob.vim
index f2b32c06d4..c5a217f36f 100644
--- a/src/nvim/testdir/test_blob.vim
+++ b/src/nvim/testdir/test_blob.vim
@@ -209,6 +209,7 @@ func Test_blob_add()
call assert_equal(0z001122, b)
call add(b, '51')
call assert_equal(0z00112233, b)
+ call assert_equal(1, add(v:_null_blob, 0x22))
call assert_fails('call add(b, [9])', 'E745:')
call assert_fails('call add("", 0x01)', 'E897:')