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().
diff --git a/src/testing.c b/src/testing.c
index 5dacf07..8a64ce8 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -896,6 +896,18 @@
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)