mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1164
Problem: No tests for comparing special variables. Error in jsondecode()
not reported. test_json does not work Japanse system.
Solution: Set scriptencoding. (Ken Takata) Add a few more tests. Add error.
6039c7f053
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
7b8fcf0234
commit
6a00b16896
@ -1166,6 +1166,18 @@ func Test_type()
|
||||
call assert_equal('true', '' . v:true)
|
||||
" call assert_equal('none', '' . v:none)
|
||||
call assert_equal('null', '' . v:null)
|
||||
|
||||
call assert_true(v:false == 0)
|
||||
call assert_false(v:false != 0)
|
||||
call assert_true(v:true == 1)
|
||||
call assert_false(v:true != 1)
|
||||
call assert_false(v:true == v:false)
|
||||
call assert_true(v:true != v:false)
|
||||
|
||||
call assert_true(v:null == 0)
|
||||
call assert_false(v:null != 0)
|
||||
" call assert_true(v:none == 0)
|
||||
" call assert_false(v:none != 0)
|
||||
endfunc
|
||||
|
||||
"-------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user