rettv->v_type = VAR_STRING;
if (argvars[2].v_type != VAR_UNKNOWN)
{
- if (tv_get_number_chk(&argvars[2], &error))
+ if (tv_get_bool_chk(&argvars[2], &error))
flags |= WILD_KEEP_ALL;
if (argvars[3].v_type != VAR_UNKNOWN)
{
- if (tv_get_number_chk(&argvars[3], &error))
+ if (tv_get_bool_chk(&argvars[3], &error))
rettv_list_set(rettv, NULL);
if (argvars[4].v_type != VAR_UNKNOWN
- && tv_get_number_chk(&argvars[4], &error))
+ && tv_get_bool_chk(&argvars[4], &error))
flags |= WILD_ALLLINKS;
}
}
assert_equal(['runtest.vim'], glob('runtest.vim', true, true, true))
enddef
+def Test_globpath()
+ assert_equal(['./runtest.vim'], globpath('.', 'runtest.vim', true, true, true))
+enddef
+
def Test_recursive_call()
assert_equal(6765, Fibonacci(20))
enddef