1
0
forked from aniani/vim

patch 7.4.1167

Problem:    No tests for "is" and "isnot" with the new variables.
Solution:   Add tests.
This commit is contained in:
Bram Moolenaar 2016-01-24 17:21:29 +01:00
parent fcaaae6b3f
commit 0436922965
2 changed files with 26 additions and 0 deletions

View File

@ -958,6 +958,30 @@ func Test_type()
call assert_false(v:null != 0)
call assert_true(v:none == 0)
call assert_false(v:none != 0)
call assert_true(v:false is v:false)
call assert_true(v:true is v:true)
call assert_true(v:none is v:none)
call assert_true(v:null is v:null)
call assert_false(v:false isnot v:false)
call assert_false(v:true isnot v:true)
call assert_false(v:none isnot v:none)
call assert_false(v:null isnot v:null)
call assert_false(v:false is 0)
call assert_false(v:true is 1)
call assert_false(v:true is v:false)
call assert_false(v:none is 0)
call assert_false(v:null is 0)
call assert_false(v:null is v:none)
call assert_true(v:false isnot 0)
call assert_true(v:true isnot 1)
call assert_true(v:true isnot v:false)
call assert_true(v:none isnot 0)
call assert_true(v:null isnot 0)
call assert_true(v:null isnot v:none)
endfunc
"-------------------------------------------------------------------------------

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1167,
/**/
1166,
/**/