Mercurial > vim
diff src/testing.c @ 19483:0d3dcb4476ba v8.2.0299
patch 8.2.0299: Vim9: ISN_STORE with argument not tested
Commit: https://github.com/vim/vim/commit/8ed04587d3cd53e29be20fde9c36e619ea7da4dc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 22 19:07:28 2020 +0100
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().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 22 Feb 2020 19:15:04 +0100 |
parents | 6c944fee0d7e |
children | f92435f0f449 |
line wrap: on
line diff
--- a/src/testing.c +++ b/src/testing.c @@ -896,6 +896,18 @@ f_test_null_string(typval_T *argvars UNU 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)