mirror of
https://github.com/vim/vim.git
synced 2025-11-09 10:37:17 -05:00
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: #17144
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
8f09684569
commit
e9a27ef373
@@ -1,4 +1,4 @@
|
|||||||
*builtin.txt* For Vim version 9.1. Last change: 2025 Mar 30
|
*builtin.txt* For Vim version 9.1. Last change: 2025 Apr 18
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -8158,7 +8158,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: >
|
You cannot mix positional and non-positional arguments: >
|
||||||
|
|||||||
@@ -434,6 +434,7 @@ NEW_TESTS_RES = \
|
|||||||
test_float_func.res \
|
test_float_func.res \
|
||||||
test_fnameescape.res \
|
test_fnameescape.res \
|
||||||
test_fold.res \
|
test_fold.res \
|
||||||
|
test_format.res \
|
||||||
test_functions.res \
|
test_functions.res \
|
||||||
test_function_lists.res \
|
test_function_lists.res \
|
||||||
test_getcwd.res \
|
test_getcwd.res \
|
||||||
|
|||||||
@@ -334,13 +334,13 @@ func Test_printf_pos_errors()
|
|||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*123456789$.*987654321$d', 5)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*123456789$.*987654321$d', 5)"], "E1510:")
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%123456789$*1$.*987654321$d', 5)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%123456789$*1$.*987654321$d', 5)"], "E1510:")
|
||||||
|
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*2$.*1$d', 5, 9999)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*2$.*1$d', 5, 9999999)"], "E1510:")
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*1$.*2$d', 5, 9999)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*1$.*2$d', 5, 9999999)"], "E1510:")
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%2$*3$.*1$d', 5, 9123, 9321)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%2$*3$.*1$d', 5, 9999123, 9999321)"], "E1510:")
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*2$.*3$d', 5, 9123, 9321)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*2$.*3$d', 5, 9999123, 9999321)"], "E1510:")
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%2$*1$.*3$d', 5, 9123, 9312)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%2$*1$.*3$d', 5, 9999123, 9999312)"], "E1510:")
|
||||||
|
|
||||||
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*2$d', 5, 9999)"], "E1510:")
|
call v9.CheckLegacyAndVim9Failure(["call printf('%1$*2$d', 5, 9999999)"], "E1510:")
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_printf_pos_64bit()
|
func Test_printf_pos_64bit()
|
||||||
|
|||||||
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1318,
|
||||||
/**/
|
/**/
|
||||||
1317,
|
1317,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user