mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:9.1.1318: tests: test_format fails
Problem:  tests: test_format fails (after 9.1.1314).
Solution: Increase the string size.  Add missing test_format.res in
          NEW_TESTS_RES (zeertzjq).
closes: vim/vim#17144
e9a27ef373
			
			
This commit is contained in:
		
							
								
								
									
										3
									
								
								runtime/doc/builtin.txt
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								runtime/doc/builtin.txt
									
									
									
										generated
									
									
									
								
							| @@ -7395,7 +7395,8 @@ printf({fmt}, {expr1} ...)                                            *printf()* | |||||||
| <		      1.41 | <		      1.41 | ||||||
|  |  | ||||||
| 		You will get an overflow error |E1510|, when the field-width | 		You will get an overflow error |E1510|, when the field-width | ||||||
| 		or precision will result in a string longer than 6400 chars. | 		or precision will result in a string longer than 1 MB | ||||||
|  | 		(1024*1024 = 1048576) chars. | ||||||
|  |  | ||||||
| 							*E1500* | 							*E1500* | ||||||
| 		You cannot mix positional and non-positional arguments: >vim | 		You cannot mix positional and non-positional arguments: >vim | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								runtime/lua/vim/_meta/vimfn.lua
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								runtime/lua/vim/_meta/vimfn.lua
									
									
									
										generated
									
									
									
								
							| @@ -6720,7 +6720,8 @@ function vim.fn.prevnonblank(lnum) end | |||||||
| --- <      1.41 | --- <      1.41 | ||||||
| --- | --- | ||||||
| --- You will get an overflow error |E1510|, when the field-width | --- You will get an overflow error |E1510|, when the field-width | ||||||
| --- or precision will result in a string longer than 6400 chars. | --- or precision will result in a string longer than 1 MB | ||||||
|  | --- (1024*1024 = 1048576) chars. | ||||||
| --- | --- | ||||||
| ---           *E1500* | ---           *E1500* | ||||||
| --- You cannot mix positional and non-positional arguments: >vim | --- You cannot mix positional and non-positional arguments: >vim | ||||||
|   | |||||||
| @@ -8169,7 +8169,8 @@ M.funcs = { | |||||||
|       <      1.41 |       <      1.41 | ||||||
|  |  | ||||||
|       You will get an overflow error |E1510|, when the field-width |       You will get an overflow error |E1510|, when the field-width | ||||||
|       or precision will result in a string longer than 6400 chars. |       or precision will result in a string longer than 1 MB | ||||||
|  |       (1024*1024 = 1048576) chars. | ||||||
|  |  | ||||||
|       					*E1500* |       					*E1500* | ||||||
|       You cannot mix positional and non-positional arguments: >vim |       You cannot mix positional and non-positional arguments: >vim | ||||||
|   | |||||||
| @@ -334,13 +334,13 @@ func Test_printf_pos_errors() | |||||||
|   call CheckLegacyAndVim9Failure(["call printf('%1$*123456789$.*987654321$d', 5)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%1$*123456789$.*987654321$d', 5)"], "E1510:") | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%123456789$*1$.*987654321$d', 5)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%123456789$*1$.*987654321$d', 5)"], "E1510:") | ||||||
|  |  | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%1$*2$.*1$d', 5, 9999)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%1$*2$.*1$d', 5, 9999999)"], "E1510:") | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%1$*1$.*2$d', 5, 9999)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%1$*1$.*2$d', 5, 9999999)"], "E1510:") | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%2$*3$.*1$d', 5, 9123, 9321)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%2$*3$.*1$d', 5, 9999123, 9999321)"], "E1510:") | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%1$*2$.*3$d', 5, 9123, 9321)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%1$*2$.*3$d', 5, 9999123, 9999321)"], "E1510:") | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%2$*1$.*3$d', 5, 9123, 9312)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%2$*1$.*3$d', 5, 9999123, 9999312)"], "E1510:") | ||||||
|  |  | ||||||
|   call CheckLegacyAndVim9Failure(["call printf('%1$*2$d', 5, 9999)"], "E1510:") |   call CheckLegacyAndVim9Failure(["call printf('%1$*2$d', 5, 9999999)"], "E1510:") | ||||||
| endfunc | endfunc | ||||||
|  |  | ||||||
| func Test_printf_pos_64bit() | func Test_printf_pos_64bit() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq