mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1228
Problem: copy() and deepcopy() fail with special variables. (Nikolai
Pavlov)
Solution: Make it work. Add a test. Closes vim/vim#614.
155500077c
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:
parent
a937fc53ef
commit
e6e9ffb345
@ -1208,6 +1208,16 @@ func Test_type()
|
||||
" call assert_equal(v:none, eval(string(v:none)))
|
||||
call assert_equal(v:null, eval(string(v:null)))
|
||||
|
||||
call assert_equal(v:false, copy(v:false))
|
||||
call assert_equal(v:true, copy(v:true))
|
||||
" call assert_equal(v:none, copy(v:none))
|
||||
call assert_equal(v:null, copy(v:null))
|
||||
|
||||
call assert_equal([v:false], deepcopy([v:false]))
|
||||
call assert_equal([v:true], deepcopy([v:true]))
|
||||
" call assert_equal([v:none], deepcopy([v:none]))
|
||||
call assert_equal([v:null], deepcopy([v:null]))
|
||||
|
||||
call assert_true(empty(v:false))
|
||||
call assert_false(empty(v:true))
|
||||
call assert_true(empty(v:null))
|
||||
|
Loading…
Reference in New Issue
Block a user