1
0
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:
Yegappan Lakshmanan
2022-09-22 13:44:00 +01:00
committed by Bram Moolenaar
parent f1d2ddcb9b
commit e24b5e0b0f
4 changed files with 63 additions and 0 deletions

View File

@@ -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