Mercurial > vim
changeset 31851:84bda983ee01 v9.0.1258
patch 9.0.1258: code style test fails
Commit: https://github.com/vim/vim/commit/755bf2b3d265ceb9c02752d4286a055e44f9ce29
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 28 19:38:49 2023 +0000
patch 9.0.1258: code style test fails
Problem: Code style test fails.
Solution: Adjust test files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Jan 2023 20:45:03 +0100 |
parents | 088d635bfa11 |
children | c344e73e440e |
files | src/testdir/test_popupwin.vim src/testdir/test_vim9_script.vim src/version.c |
diffstat | 3 files changed, 27 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -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' return #{ - \ words: [ - \ #{ - \ word: 'scrap', - \ menu: menuText, - \ info: "other words are\ncooler than this and some more text\nto make wrap", - \ }, - \ #{ - \ word: 'scappier', - \ menu: menuText, - \ info: 'words are cool', - \ }, - \ #{ - \ word: 'scrappier2', - \ menu: menuText, - \ info: 'words are cool', - \ }, - \ ] + \ words: [ + \ #{ + \ word: 'scrap', + \ menu: menuText, + \ info: "other words are\ncooler than this and some more text\nto make wrap", + \ }, + \ #{ + \ word: 'scappier', + \ menu: menuText, + \ info: 'words are cool', + \ }, + \ #{ + \ word: 'scrappier2', + \ menu: menuText, + \ info: 'words are cool', + \ }, + \ ] \ } endfunc END
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -542,12 +542,12 @@ def Test_try_catch_throw() if 1 else try | catch /pat/ | endtry - try | catch /pat/ + try | catch /pat/ endtry - try + try catch /pat/ | endtry - try - catch /pat/ + try + catch /pat/ endtry endif @@ -617,7 +617,7 @@ def Test_try_catch_throw() endtry assert_equal(266, n) - l = [1, 2, 3] + l = [1, 2, 3] try [n] = l catch /E1093:/ @@ -1336,7 +1336,7 @@ def Test_statusline_syntax() endfunc set laststatus=2 statusline=%!Status() redrawstatus - set laststatus statusline= + set laststatus statusline= END v9.CheckScriptSuccess(lines) enddef @@ -3601,7 +3601,7 @@ def Test_declare_script_var_in_func() END v9.CheckScriptFailure(lines, 'E1269:') enddef - + def Test_lock_script_var() var lines =<< trim END vim9script @@ -3626,7 +3626,7 @@ def Test_lock_script_var() END v9.CheckScriptSuccess(lines) enddef - + func Test_vim9script_not_global() " check that items defined in Vim9 script are script-local, not global