mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.4676: test fails with different error
Problem: Test fails with different error.
Solution: Add argument for :elseif.
292e1b9f68
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
2cb0860117
commit
bc1dbebe1f
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user