view src/testdir/test_eval_stuff.vim @ 13132:fe0cec169589 v8.0.1440

patch 8.0.1440: terminal window: some vterm responses are delayed commit https://github.com/vim/vim/commit/b50773c6df0bc2c9c2ab1afecc78083abc606de0 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 30 22:31:19 2018 +0100 patch 8.0.1440: terminal window: some vterm responses are delayed Problem: Terminal window: some vterm responses are delayed. Solution: After writing input. check if there is output to read. (Ozaki Kiichi, closes #2594)
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Jan 2018 22:45:05 +0100
parents 30f9a62f5f51
children 530943a23d3f
line wrap: on
line source

" 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