mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 21:15:09 +00:00
vim-patch:8.2.0183: tests fail when the float feature is disabled (#29738)
Problem: Tests fail when the float feature is disabled.
Solution: Skip tests that don't work without float support.
5feabe00c4
Cherry-pick Test_ruby_Vim_blob() from patch 8.1.0977 and skip it.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -337,6 +337,14 @@ func Test_ruby_Vim_evaluate()
|
||||
call assert_equal('FalseClass',rubyeval('Vim::evaluate("v:false").class'))
|
||||
endfunc
|
||||
|
||||
func Test_ruby_Vim_blob()
|
||||
throw 'skipped: TODO: '
|
||||
call assert_equal('0z', rubyeval('Vim::blob("")'))
|
||||
call assert_equal('0z31326162', rubyeval('Vim::blob("12ab")'))
|
||||
call assert_equal('0z00010203', rubyeval('Vim::blob("\x00\x01\x02\x03")'))
|
||||
call assert_equal('0z8081FEFF', rubyeval('Vim::blob("\x80\x81\xfe\xff")'))
|
||||
endfunc
|
||||
|
||||
func Test_ruby_Vim_evaluate_list()
|
||||
call setline(line('$'), ['2 line 2'])
|
||||
ruby Vim.command("normal /^2\n")
|
||||
|
||||
Reference in New Issue
Block a user