Mercurial > vim
changeset 10462:0d345265b1e2 v8.0.0124
commit https://github.com/vim/vim/commit/3421566376b5723213af502bd3c2b9debe025ef1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 4 13:37:41 2016 +0100
patch 8.0.0124
Problem: Internal error for assert_inrange(1, 1).
Solution: Adjust number of allowed arguments. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 04 Dec 2016 13:45:04 +0100 |
parents | 6c3b41f81213 |
children | bd4bcb516156 |
files | src/evalfunc.c src/testdir/test_assert.vim src/version.c |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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},
--- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -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()