0
0
mirror of https://github.com/vim/vim.git synced 2025-10-12 06:44:06 -04:00
Files
vim/src/testdir/test_eval_stuff.vim

14 lines
201 B
VimL
Raw Normal View History

" 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