mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
743993eb55
commit
5cd68b3900
@ -29,7 +29,7 @@ return {
|
|||||||
assert_exception={args={1, 2}},
|
assert_exception={args={1, 2}},
|
||||||
assert_fails={args={1, 2}},
|
assert_fails={args={1, 2}},
|
||||||
assert_false={args={1, 2}},
|
assert_false={args={1, 2}},
|
||||||
assert_inrange={args={2, 3}},
|
assert_inrange={args={3, 4}},
|
||||||
assert_match={args={2, 3}},
|
assert_match={args={2, 3}},
|
||||||
assert_notequal={args={2, 3}},
|
assert_notequal={args={2, 3}},
|
||||||
assert_notmatch={args={2, 3}},
|
assert_notmatch={args={2, 3}},
|
||||||
|
@ -605,7 +605,7 @@ static const int included_patches[] = {
|
|||||||
127,
|
127,
|
||||||
// 126,
|
// 126,
|
||||||
// 125,
|
// 125,
|
||||||
// 124,
|
124,
|
||||||
// 123 NA
|
// 123 NA
|
||||||
// 122 NA
|
// 122 NA
|
||||||
121,
|
121,
|
||||||
|
@ -253,6 +253,11 @@ describe('assert function:', function()
|
|||||||
"Expected range 5 - 7, but got 8",
|
"Expected range 5 - 7, but got 8",
|
||||||
})
|
})
|
||||||
end)
|
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)
|
end)
|
||||||
|
|
||||||
-- assert_report({msg})
|
-- assert_report({msg})
|
||||||
|
Loading…
Reference in New Issue
Block a user