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:
zeertzjq
2024-07-16 14:25:35 +08:00
committed by GitHub
parent 37c7c7547a
commit 598fd77d95
4 changed files with 62 additions and 10 deletions

View File

@@ -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")