patch 8.2.3456: Vim9: not all functions are tested with empty string argument
Problem: Vim9: Not all functions are tested with an empty string argument.
Solution: Add tests with empty strings. (Yegappan Lakshmanan, closes #8915)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 16d9be3..8a06f75 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -9647,9 +9647,8 @@
if (in_vim9script()
&& (check_for_number_arg(argvars, 0) == FAIL
- || (check_for_string_arg(argvars, 1) == FAIL
- || (argvars[1].v_type != VAR_UNKNOWN
- && check_for_opt_string_arg(argvars, 2) == FAIL))))
+ || check_for_string_arg(argvars, 1) == FAIL
+ || check_for_opt_string_arg(argvars, 2) == FAIL))
return;
id = (int)tv_get_number(&argvars[0]);