0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.0124

Problem:    Internal error for assert_inrange(1, 1).
Solution:   Adjust number of allowed arguments. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2016-12-04 13:37:41 +01:00
parent a899e6ecc4
commit 3421566376
3 changed files with 5 additions and 1 deletions

View File

@@ -471,7 +471,7 @@ static struct fst
{"assert_exception", 1, 2, f_assert_exception}, {"assert_exception", 1, 2, f_assert_exception},
{"assert_fails", 1, 2, f_assert_fails}, {"assert_fails", 1, 2, f_assert_fails},
{"assert_false", 1, 2, f_assert_false}, {"assert_false", 1, 2, f_assert_false},
{"assert_inrange", 2, 3, f_assert_inrange}, {"assert_inrange", 3, 4, f_assert_inrange},
{"assert_match", 2, 3, f_assert_match}, {"assert_match", 2, 3, f_assert_match},
{"assert_notequal", 2, 3, f_assert_notequal}, {"assert_notequal", 2, 3, f_assert_notequal},
{"assert_notmatch", 2, 3, f_assert_notmatch}, {"assert_notmatch", 2, 3, f_assert_notmatch},

View File

@@ -117,6 +117,8 @@ func Test_assert_inrange()
call assert_inrange(5, 7, 8) call assert_inrange(5, 7, 8)
call assert_match("Expected range 5 - 7, but got 8", v:errors[0]) call assert_match("Expected range 5 - 7, but got 8", v:errors[0])
call remove(v:errors, 0) call remove(v:errors, 0)
call assert_fails('call assert_inrange(1, 1)', 'E119:')
endfunc endfunc
func Test_user_is_happy() func Test_user_is_happy()

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
124,
/**/ /**/
123, 123,
/**/ /**/