rettv->v_type = VAR_STRING;
if (argvars[1].v_type != VAR_UNKNOWN)
{
- if (tv_get_number_chk(&argvars[1], &error))
+ if (tv_get_bool_chk(&argvars[1], &error))
options |= WILD_KEEP_ALL;
if (argvars[2].v_type != VAR_UNKNOWN)
{
- if (tv_get_number_chk(&argvars[2], &error))
+ if (tv_get_bool_chk(&argvars[2], &error))
rettv_list_set(rettv, NULL);
if (argvars[3].v_type != VAR_UNKNOWN
- && tv_get_number_chk(&argvars[3], &error))
+ && tv_get_bool_chk(&argvars[3], &error))
options |= WILD_ALLLINKS;
}
}
assert_equal(lines, getreg('a', true, true))
enddef
+def Test_glob()
+ assert_equal(['runtest.vim'], glob('runtest.vim', true, true, true))
+enddef
+
def Test_recursive_call()
assert_equal(6765, Fibonacci(20))
enddef