diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-07-29 10:24:07 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-07-30 14:15:26 +0200 |
commit | 5cd68b39003dc51c5b80147d689cf7e8b67443b0 (patch) | |
tree | 82daa7a5bd124687c3defd039e6bd46e8dcd211d /test/functional/legacy/assert_spec.lua | |
parent | 743993eb553302a461ee0ef9cffa57f93c10c955 (diff) | |
download | rneovim-5cd68b39003dc51c5b80147d689cf7e8b67443b0.tar.gz rneovim-5cd68b39003dc51c5b80147d689cf7e8b67443b0.tar.bz2 rneovim-5cd68b39003dc51c5b80147d689cf7e8b67443b0.zip |
vim-patch:8.0.0124 #7092
Problem: Internal error for assert_inrange(1, 1).
Solution: Adjust number of allowed arguments. (Dominique Pelle)
https://github.com/vim/vim/commit/3421566376b5723213af502bd3c2b9debe025ef1
Diffstat (limited to 'test/functional/legacy/assert_spec.lua')
-rw-r--r-- | test/functional/legacy/assert_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/legacy/assert_spec.lua b/test/functional/legacy/assert_spec.lua index 2f342ec9a3..d646e8dbf4 100644 --- a/test/functional/legacy/assert_spec.lua +++ b/test/functional/legacy/assert_spec.lua @@ -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}) |