vim-patch:8.0.0124 #7092

Problem:    Internal error for assert_inrange(1, 1).
Solution:   Adjust number of allowed arguments. (Dominique Pelle)

3421566376
This commit is contained in:
ckelsel 2017-07-29 10:24:07 +08:00 committed by Justin M. Keyes
parent 743993eb55
commit 5cd68b3900
3 changed files with 7 additions and 2 deletions

View File

@ -29,7 +29,7 @@ return {
assert_exception={args={1, 2}},
assert_fails={args={1, 2}},
assert_false={args={1, 2}},
assert_inrange={args={2, 3}},
assert_inrange={args={3, 4}},
assert_match={args={2, 3}},
assert_notequal={args={2, 3}},
assert_notmatch={args={2, 3}},

View File

@ -605,7 +605,7 @@ static const int included_patches[] = {
127,
// 126,
// 125,
// 124,
124,
// 123 NA
// 122 NA
121,

View File

@ -253,6 +253,11 @@ describe('assert function:', function()
"Expected range 5 - 7, but got 8",
})
end)
it('assert_inrange(1, 1) returns E119', function()
eq('Vim(call):E119: Not enough arguments for function: assert_inrange',
exc_exec("call assert_inrange(1, 1)"))
end)
end)
-- assert_report({msg})