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)
d84b26a03b

nvim does not support v:none.
This commit is contained in:
Jan Edmund Lazo 2019-09-15 07:11:00 -04:00
parent 86e819d492
commit c65dd2d114
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -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.