aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-28 20:38:16 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-02-28 20:46:06 +0800
commitccac34af766bee70d4f2a3cd69b54977849f567d (patch)
tree5d143a047bd6e0bc1805df4448e2579c6f9b4a6f /src
parentf6b9791212e86bac3e8128035dec2bfc5016927f (diff)
downloadrneovim-ccac34af766bee70d4f2a3cd69b54977849f567d.tar.gz
rneovim-ccac34af766bee70d4f2a3cd69b54977849f567d.tar.bz2
rneovim-ccac34af766bee70d4f2a3cd69b54977849f567d.zip
vim-patch:8.2.3446: not enough tests for empty string arguments
Problem: Not enough tests for empty string arguments. Solution: Add tests, fix type check. (Yegappan Lakshmanan, closes vim/vim#8881) https://github.com/vim/vim/commit/820d5525cae707f39571c6abc2aa6a9e66ed171e Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_blob.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_blob.vim b/src/nvim/testdir/test_blob.vim
index 28df120b78..f889da987a 100644
--- a/src/nvim/testdir/test_blob.vim
+++ b/src/nvim/testdir/test_blob.vim
@@ -691,10 +691,11 @@ func Test_list2blob()
\ [[0], 0z00],
\ [[], 0z],
\ [[0, 0, 0, 0], 0z00000000],
+ \ [[255, 255], 0zFFFF],
\ [[170, 187, 204, 221], 0zAABB.CCDD],
\ ]
for t in tests
- call assert_equal(t[0]->list2blob(), t[1])
+ call assert_equal(t[1], t[0]->list2blob())
endfor
call assert_fails('let b = list2blob([1, []])', 'E745:')
call assert_fails('let b = list2blob([-1])', 'E1239:')