diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-07 20:16:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-07 20:16:49 +0200 |
commit | 1307d1c003b01b4f67524c95feb07c3d91c7c428 (patch) | |
tree | 8c365b3c02351b128d4aea2744f4411425a84b30 /src/evalfunc.c | |
parent | a05a0d325c7615439f4a42f00682b2ebad43c8d9 (diff) | |
download | vim-git-1307d1c003b01b4f67524c95feb07c3d91c7c428.tar.gz |
patch 8.1.0460: assert_fails() does not take a message argumentv8.1.0460
Problem: assert_fails() does not take a message argument
Solution: Add the argument.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index c9f4c4581..0d799964f 100644 --- 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, typval_T *rettv) } /* - * "assert_fails(cmd [, error])" function + * "assert_fails(cmd [, error[, msg]])" function */ static void f_assert_fails(typval_T *argvars, typval_T *rettv) |