aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_assert.vim
blob: a4c8ce7e430b6326d0028e508344899eda73eb57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Test that the methods used for testing work.

func Test_assert_fails_in_try_block()
  try
    call assert_equal(0, assert_fails('throw "error"'))
  endtry
endfunc

" Must be last.
func Test_zz_quit_detected()
  " Verify that if a test function ends Vim the test script detects this.
  quit
endfunc