diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-16 14:25:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 06:25:35 +0000 |
commit | 598fd77d952364d4dd3433425afe9798dac15206 (patch) | |
tree | 71e27a8278791ab97f95f0e382a2fbbcb41c7811 /test/old/testdir/test_ruby.vim | |
parent | 37c7c7547a09cb6fb391f739d08290b782429494 (diff) | |
download | rneovim-598fd77d952364d4dd3433425afe9798dac15206.tar.gz rneovim-598fd77d952364d4dd3433425afe9798dac15206.tar.bz2 rneovim-598fd77d952364d4dd3433425afe9798dac15206.zip |
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.
https://github.com/vim/vim/commit/5feabe00c47fa66d5f4c95213f150488433f78e3
Cherry-pick Test_ruby_Vim_blob() from patch 8.1.0977 and skip it.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_ruby.vim')
-rw-r--r-- | test/old/testdir/test_ruby.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/old/testdir/test_ruby.vim b/test/old/testdir/test_ruby.vim index 4929496086..483e235636 100644 --- a/test/old/testdir/test_ruby.vim +++ b/test/old/testdir/test_ruby.vim @@ -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") |