0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0299: Vim9: ISN_STORE with argument not tested

Problem:    Vim9: ISN_STORE with argument not tested.  Some cases in tv2bool()
            not tested.
Solution:   Add tests.  Add test_unknown() and test_void().
This commit is contained in:
Bram Moolenaar
2020-02-22 19:07:28 +01:00
parent 0c6ceaf903
commit 8ed04587d3
8 changed files with 61 additions and 0 deletions

View File

@@ -896,6 +896,18 @@ f_test_null_string(typval_T *argvars UNUSED, typval_T *rettv)
rettv->vval.v_string = NULL;
}
void
f_test_unknown(typval_T *argvars UNUSED, typval_T *rettv)
{
rettv->v_type = VAR_UNKNOWN;
}
void
f_test_void(typval_T *argvars UNUSED, typval_T *rettv)
{
rettv->v_type = VAR_VOID;
}
#ifdef FEAT_GUI
void
f_test_scrollbar(typval_T *argvars, typval_T *rettv UNUSED)