Problem: assert_false(v:false) reports an error. (Nikolai Pavlov)
Solution: Recognize v:true and v:false. (Closes #625)
int error = FALSE;
garray_T ga;
+ if (argvars[0].v_type == VAR_SPECIAL
+ && argvars[0].vval.v_number == (isTrue ? VVAL_TRUE : VV_FALSE))
+ return;
if (argvars[0].v_type != VAR_NUMBER
|| (get_tv_number_chk(&argvars[0], &error) == 0) == isTrue
|| error)
func Test_assert_false()
call assert_false(0)
+ call assert_false(v:false)
endfunc
func Test_assert_true()
call assert_true(1)
call assert_true(123)
+ call assert_true(v:true)
endfunc
func Test_assert_equal()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1271,
/**/
1270,
/**/