Mercurial > vim
diff src/evalfunc.c @ 14897:0c845463a0db v8.1.0460
patch 8.1.0460: assert_fails() does not take a message argument
commit https://github.com/vim/vim/commit/1307d1c003b01b4f67524c95feb07c3d91c7c428
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 7 20:16:49 2018 +0200
patch 8.1.0460: assert_fails() does not take a message argument
Problem: assert_fails() does not take a message argument
Solution: Add the argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Oct 2018 20:30:06 +0200 |
parents | f20df682c8af |
children | 2c0bfa167468 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -512,7 +512,7 @@ static struct fst {"assert_equal", 2, 3, f_assert_equal}, {"assert_equalfile", 2, 2, f_assert_equalfile}, {"assert_exception", 1, 2, f_assert_exception}, - {"assert_fails", 1, 2, f_assert_fails}, + {"assert_fails", 1, 3, f_assert_fails}, {"assert_false", 1, 2, f_assert_false}, {"assert_inrange", 3, 4, f_assert_inrange}, {"assert_match", 2, 3, f_assert_match}, @@ -1507,7 +1507,7 @@ f_assert_exception(typval_T *argvars, ty } /* - * "assert_fails(cmd [, error])" function + * "assert_fails(cmd [, error[, msg]])" function */ static void f_assert_fails(typval_T *argvars, typval_T *rettv)