diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-13 07:29:05 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-13 07:30:05 +0800 |
commit | bc1dbebe1f18df719b9e357f4d8b9bea3a3581b8 (patch) | |
tree | a0a32bbe28d0f76aaf3c210ee4e564c60f4c4fb9 | |
parent | 2cb0860117623368bc53e4d578695136ce6912e0 (diff) | |
download | rneovim-bc1dbebe1f18df719b9e357f4d8b9bea3a3581b8.tar.gz rneovim-bc1dbebe1f18df719b9e357f4d8b9bea3a3581b8.tar.bz2 rneovim-bc1dbebe1f18df719b9e357f4d8b9bea3a3581b8.zip |
vim-patch:8.2.4676: test fails with different error
Problem: Test fails with different error.
Solution: Add argument for :elseif.
https://github.com/vim/vim/commit/292e1b9f681054a1de8fa22315ae6eedd7acb205
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | src/nvim/testdir/test_vimscript.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim index 44904af160..0fce52f88c 100644 --- a/src/nvim/testdir/test_vimscript.vim +++ b/src/nvim/testdir/test_vimscript.vim @@ -3024,7 +3024,7 @@ func Test_nested_if_else_errors() " :elseif without :if let code =<< trim END - elseif + elseif 1 END call writefile(code, 'Xtest') call AssertException(['source Xtest'], 'Vim(elseif):E582: :elseif without :if') @@ -3032,7 +3032,7 @@ func Test_nested_if_else_errors() " :elseif without :if let code =<< trim END while 1 - elseif + elseif 1 endwhile END call writefile(code, 'Xtest') @@ -3042,7 +3042,7 @@ func Test_nested_if_else_errors() let code =<< trim END try finally - elseif + elseif 1 endtry END call writefile(code, 'Xtest') @@ -3051,7 +3051,7 @@ func Test_nested_if_else_errors() " :elseif without :if let code =<< trim END try - elseif + elseif 1 endtry END call writefile(code, 'Xtest') @@ -3062,7 +3062,7 @@ func Test_nested_if_else_errors() try throw "a" catch /a/ - elseif + elseif 1 endtry END call writefile(code, 'Xtest') |