diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-15 07:11:00 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-15 07:41:08 -0400 |
commit | c65dd2d114b8a493b05e8b570a5dff6f696acd9c (patch) | |
tree | c9a3f2129af4299ac179cc4f43bbec0950fc4633 | |
parent | 86e819d492faa2494ffe0e86f37c49eb4c0f2e56 (diff) | |
download | rneovim-c65dd2d114b8a493b05e8b570a5dff6f696acd9c.tar.gz rneovim-c65dd2d114b8a493b05e8b570a5dff6f696acd9c.tar.bz2 rneovim-c65dd2d114b8a493b05e8b570a5dff6f696acd9c.zip |
vim-patch:8.1.0220: Ruby converts v:true and v:false to a number
Problem: Ruby converts v:true and v:false to a number.
Solution: Use Qtrue and Qfalse instead. (Masataka Pocke Kuwabara,
closes vim/vim#3259)
https://github.com/vim/vim/commit/d84b26a03b13cd816d80ff32b61e8de740d499ce
nvim does not support v:none.
-rw-r--r-- | src/nvim/testdir/test_ruby.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ruby.vim b/src/nvim/testdir/test_ruby.vim index ef1a2d25b7..64199570a9 100644 --- a/src/nvim/testdir/test_ruby.vim +++ b/src/nvim/testdir/test_ruby.vim @@ -34,6 +34,14 @@ func Test_ruby_evaluate_dict() call assert_equal(['{"a"=>"foo", "b"=>123}'], split(l:out, "\n")) endfunc +func Test_ruby_evaluate_special_var() + let l = [v:true, v:false, v:null] + redir => l:out + ruby d = Vim.evaluate("l"); print d + redir END + call assert_equal(['[true, false, nil]'], split(l:out, "\n")) +endfunc + func Test_rubydo() throw 'skipped: TODO: ' " Check deleting lines does not trigger ml_get error. |