mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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)
0d13cce345
-----
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>
This commit is contained in:
@@ -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'))
|
||||
|
||||
|
Reference in New Issue
Block a user