forked from aniani/vim
patch 9.0.0543: insufficient testing for assert and test functions
Problem: Insufficient testing for assert and test functions. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #11190)
This commit is contained in:
committed by
Bram Moolenaar
parent
f1d2ddcb9b
commit
e24b5e0b0f
@@ -7216,6 +7216,14 @@ func Test_refcount()
|
||||
call d.Func()
|
||||
unlet d
|
||||
delfunc DictFunc
|
||||
|
||||
call assert_equal(-1, test_refcount(test_null_job()))
|
||||
call assert_equal(-1, test_refcount(test_null_channel()))
|
||||
call assert_equal(-1, test_refcount(test_null_function()))
|
||||
call assert_equal(-1, test_refcount(test_null_partial()))
|
||||
call assert_equal(-1, test_refcount(test_null_blob()))
|
||||
call assert_equal(-1, test_refcount(test_null_list()))
|
||||
call assert_equal(-1, test_refcount(test_null_dict()))
|
||||
endfunc
|
||||
|
||||
" Test for missing :endif, :endfor, :endwhile and :endtry {{{1
|
||||
|
||||
Reference in New Issue
Block a user