comparison 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
comparison
equal deleted inserted replaced
14896:73e3c6e6257c 14897:0c845463a0db
510 #endif 510 #endif
511 {"assert_beeps", 1, 2, f_assert_beeps}, 511 {"assert_beeps", 1, 2, f_assert_beeps},
512 {"assert_equal", 2, 3, f_assert_equal}, 512 {"assert_equal", 2, 3, f_assert_equal},
513 {"assert_equalfile", 2, 2, f_assert_equalfile}, 513 {"assert_equalfile", 2, 2, f_assert_equalfile},
514 {"assert_exception", 1, 2, f_assert_exception}, 514 {"assert_exception", 1, 2, f_assert_exception},
515 {"assert_fails", 1, 2, f_assert_fails}, 515 {"assert_fails", 1, 3, f_assert_fails},
516 {"assert_false", 1, 2, f_assert_false}, 516 {"assert_false", 1, 2, f_assert_false},
517 {"assert_inrange", 3, 4, f_assert_inrange}, 517 {"assert_inrange", 3, 4, f_assert_inrange},
518 {"assert_match", 2, 3, f_assert_match}, 518 {"assert_match", 2, 3, f_assert_match},
519 {"assert_notequal", 2, 3, f_assert_notequal}, 519 {"assert_notequal", 2, 3, f_assert_notequal},
520 {"assert_notmatch", 2, 3, f_assert_notmatch}, 520 {"assert_notmatch", 2, 3, f_assert_notmatch},
1505 { 1505 {
1506 rettv->vval.v_number = assert_exception(argvars); 1506 rettv->vval.v_number = assert_exception(argvars);
1507 } 1507 }
1508 1508
1509 /* 1509 /*
1510 * "assert_fails(cmd [, error])" function 1510 * "assert_fails(cmd [, error[, msg]])" function
1511 */ 1511 */
1512 static void 1512 static void
1513 f_assert_fails(typval_T *argvars, typval_T *rettv) 1513 f_assert_fails(typval_T *argvars, typval_T *rettv)
1514 { 1514 {
1515 rettv->vval.v_number = assert_fails(argvars); 1515 rettv->vval.v_number = assert_fails(argvars);