vim-patch:7.4.1178

Problem:    empty() doesn't work for the new special variables.
Solution:   Make empty() work. (Damien)
767d8c1a1a

Code is N/A. This only ports the tests.
Comment out tests involving v:none as Nvim has removed it.
This commit is contained in:
zeertzjq 2022-02-07 05:34:20 +08:00
parent bf8f2ebb79
commit 3fa5d50183

View File

@ -1207,6 +1207,11 @@ func Test_type()
call assert_equal(v:true, eval(string(v:true)))
" call assert_equal(v:none, eval(string(v:none)))
call assert_equal(v:null, eval(string(v:null)))
call assert_true(empty(v:false))
call assert_false(empty(v:true))
call assert_true(empty(v:null))
" call assert_true(empty(v:none))
endfunc
"-------------------------------------------------------------------------------