mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
14 lines
201 B
VimL
14 lines
201 B
VimL
![]() |
" Tests for various eval things.
|
||
|
|
||
|
function s:foo() abort
|
||
|
try
|
||
|
return [] == 0
|
||
|
catch
|
||
|
return 1
|
||
|
endtry
|
||
|
endfunction
|
||
|
|
||
|
func Test_catch_return_with_error()
|
||
|
call assert_equal(1, s:foo())
|
||
|
endfunc
|