comparison 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
comparison
equal deleted inserted replaced
19482:5bb16fb9c9d1 19483:0d3dcb4476ba
894 { 894 {
895 rettv->v_type = VAR_STRING; 895 rettv->v_type = VAR_STRING;
896 rettv->vval.v_string = NULL; 896 rettv->vval.v_string = NULL;
897 } 897 }
898 898
899 void
900 f_test_unknown(typval_T *argvars UNUSED, typval_T *rettv)
901 {
902 rettv->v_type = VAR_UNKNOWN;
903 }
904
905 void
906 f_test_void(typval_T *argvars UNUSED, typval_T *rettv)
907 {
908 rettv->v_type = VAR_VOID;
909 }
910
899 #ifdef FEAT_GUI 911 #ifdef FEAT_GUI
900 void 912 void
901 f_test_scrollbar(typval_T *argvars, typval_T *rettv UNUSED) 913 f_test_scrollbar(typval_T *argvars, typval_T *rettv UNUSED)
902 { 914 {
903 char_u *which; 915 char_u *which;