mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00: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:
		| @@ -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}}, | ||||
|   | ||||
| @@ -605,7 +605,7 @@ static const int included_patches[] = { | ||||
|   127, | ||||
|   // 126, | ||||
|   // 125, | ||||
|   // 124, | ||||
|   124, | ||||
|   // 123 NA | ||||
|   // 122 NA | ||||
|   121, | ||||
|   | ||||
| @@ -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}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ckelsel
					ckelsel