forked from aniani/vim
patch 9.0.1258: code style test fails
Problem: Code style test fails. Solution: Adjust test files.
This commit is contained in:
@@ -3681,23 +3681,23 @@ func Test_popupmenu_info_too_wide()
|
|||||||
|
|
||||||
let menuText = 'some long text to make sure the menu takes up all of the width of the window'
|
let menuText = 'some long text to make sure the menu takes up all of the width of the window'
|
||||||
return #{
|
return #{
|
||||||
\ words: [
|
\ words: [
|
||||||
\ #{
|
\ #{
|
||||||
\ word: 'scrap',
|
\ word: 'scrap',
|
||||||
\ menu: menuText,
|
\ menu: menuText,
|
||||||
\ info: "other words are\ncooler than this and some more text\nto make wrap",
|
\ info: "other words are\ncooler than this and some more text\nto make wrap",
|
||||||
\ },
|
\ },
|
||||||
\ #{
|
\ #{
|
||||||
\ word: 'scappier',
|
\ word: 'scappier',
|
||||||
\ menu: menuText,
|
\ menu: menuText,
|
||||||
\ info: 'words are cool',
|
\ info: 'words are cool',
|
||||||
\ },
|
\ },
|
||||||
\ #{
|
\ #{
|
||||||
\ word: 'scrappier2',
|
\ word: 'scrappier2',
|
||||||
\ menu: menuText,
|
\ menu: menuText,
|
||||||
\ info: 'words are cool',
|
\ info: 'words are cool',
|
||||||
\ },
|
\ },
|
||||||
\ ]
|
\ ]
|
||||||
\ }
|
\ }
|
||||||
endfunc
|
endfunc
|
||||||
END
|
END
|
||||||
|
@@ -542,12 +542,12 @@ def Test_try_catch_throw()
|
|||||||
if 1
|
if 1
|
||||||
else
|
else
|
||||||
try | catch /pat/ | endtry
|
try | catch /pat/ | endtry
|
||||||
try | catch /pat/
|
try | catch /pat/
|
||||||
endtry
|
endtry
|
||||||
try
|
try
|
||||||
catch /pat/ | endtry
|
catch /pat/ | endtry
|
||||||
try
|
try
|
||||||
catch /pat/
|
catch /pat/
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -617,7 +617,7 @@ def Test_try_catch_throw()
|
|||||||
endtry
|
endtry
|
||||||
assert_equal(266, n)
|
assert_equal(266, n)
|
||||||
|
|
||||||
l = [1, 2, 3]
|
l = [1, 2, 3]
|
||||||
try
|
try
|
||||||
[n] = l
|
[n] = l
|
||||||
catch /E1093:/
|
catch /E1093:/
|
||||||
@@ -1336,7 +1336,7 @@ def Test_statusline_syntax()
|
|||||||
endfunc
|
endfunc
|
||||||
set laststatus=2 statusline=%!Status()
|
set laststatus=2 statusline=%!Status()
|
||||||
redrawstatus
|
redrawstatus
|
||||||
set laststatus statusline=
|
set laststatus statusline=
|
||||||
END
|
END
|
||||||
v9.CheckScriptSuccess(lines)
|
v9.CheckScriptSuccess(lines)
|
||||||
enddef
|
enddef
|
||||||
@@ -3601,7 +3601,7 @@ def Test_declare_script_var_in_func()
|
|||||||
END
|
END
|
||||||
v9.CheckScriptFailure(lines, 'E1269:')
|
v9.CheckScriptFailure(lines, 'E1269:')
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
def Test_lock_script_var()
|
def Test_lock_script_var()
|
||||||
var lines =<< trim END
|
var lines =<< trim END
|
||||||
vim9script
|
vim9script
|
||||||
@@ -3626,7 +3626,7 @@ def Test_lock_script_var()
|
|||||||
END
|
END
|
||||||
v9.CheckScriptSuccess(lines)
|
v9.CheckScriptSuccess(lines)
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
|
||||||
func Test_vim9script_not_global()
|
func Test_vim9script_not_global()
|
||||||
" check that items defined in Vim9 script are script-local, not global
|
" check that items defined in Vim9 script are script-local, not global
|
||||||
|
@@ -695,6 +695,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 */
|
||||||
|
/**/
|
||||||
|
1258,
|
||||||
/**/
|
/**/
|
||||||
1257,
|
1257,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user