Permalink
Browse files

patch 8.0.0124

Problem:    Internal error for assert_inrange(1, 1).
Solution:   Adjust number of allowed arguments. (Dominique Pelle)
  • Loading branch information...
1 parent a899e6e commit 3421566376b5723213af502bd3c2b9debe025ef1 @brammool brammool committed Dec 4, 2016
Showing with 5 additions and 1 deletion.
  1. +1 −1 src/evalfunc.c
  2. +2 −0 src/testdir/test_assert.vim
  3. +2 −0 src/version.c
View
@@ -471,7 +471,7 @@ static struct fst
{"assert_exception", 1, 2, f_assert_exception},
{"assert_fails", 1, 2, f_assert_fails},
{"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_notequal", 2, 3, f_assert_notequal},
{"assert_notmatch", 2, 3, f_assert_notmatch},
@@ -117,6 +117,8 @@ func Test_assert_inrange()
call assert_inrange(5, 7, 8)
call assert_match("Expected range 5 - 7, but got 8", v:errors[0])
call remove(v:errors, 0)
+
+ call assert_fails('call assert_inrange(1, 1)', 'E119:')
endfunc
func Test_user_is_happy()
View
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 124,
+/**/
123,
/**/
122,

0 comments on commit 3421566

Please sign in to comment.