neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ccac34af766bee70d4f2a3cd69b54977849f567d
parent f6b9791212e86bac3e8128035dec2bfc5016927f
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 28 Feb 2023 20:38:16 +0800

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:
Mruntime/doc/sign.txt | 1+
Msrc/nvim/testdir/test_blob.vim | 3++-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/runtime/doc/sign.txt b/runtime/doc/sign.txt @@ -525,6 +525,7 @@ sign_jump({id}, {group}, {buf}) {buf} and position the cursor at sign {id} in group {group}. This is similar to the |:sign-jump| command. + If {group} is an empty string, then the global group is used. For the use of {buf}, see |bufname()|. Returns the line number of the sign. Returns -1 if the diff --git 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:')