neovim

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

commit 1e81b540754286fdd50446649aa74e71302bc960
parent fadbc0e71734c3e2b8f6623258fbb74a9709ed4a
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date:   Sun, 13 Jul 2025 00:09:49 -0400

vim-patch:8.1.0977: blob not tested with Ruby

Problem:    Blob not tested with Ruby.
Solution:   Add more test coverage.  fixes a crash. (Dominique Pelle,
            closes vim/vim#4036)

https://github.com/vim/vim/commit/0d13cce3453b2274c93c5015faa1993baaebace9

-----

https://github.com/neovim/neovim/pull/15211 ports Blob type.
"Test_ruby_Vim_blob()" was already committed.
Skipped because "ruby provider" did not implement Blob API.

Co-authored-by: Bram Moolenaar <Bram@vim.org>

Diffstat:
Mtest/old/testdir/test_ruby.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/test/old/testdir/test_ruby.vim b/test/old/testdir/test_ruby.vim @@ -319,6 +319,9 @@ func Test_ruby_Vim_evaluate() call assert_equal('foo', rubyeval('Vim::evaluate("\"foo\"")')) call assert_equal('String', rubyeval('Vim::evaluate("\"foo\"").class')) + call assert_equal(["\x01\xAB"], rubyeval('Vim::evaluate("0z01ab").unpack("M")')) + call assert_equal('String', rubyeval('Vim::evaluate("0z01ab").class')) + call assert_equal([1, 2], rubyeval('Vim::evaluate("[1, 2]")')) call assert_equal('Array', rubyeval('Vim::evaluate("[1, 2]").class'))