commit bc1dbebe1f18df719b9e357f4d8b9bea3a3581b8
parent 2cb0860117623368bc53e4d578695136ce6912e0
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 13 Nov 2022 07:29:05 +0800
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>
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git 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')