view src/testdir/test_help.vim @ 11167:260100346566 v8.0.0470

patch 8.0.0470: not enough testing for help commands commit https://github.com/vim/vim/commit/751ba616d1c47de2c273b269df06c36a7ed141a2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 22:26:44 2017 +0100 patch 8.0.0470: not enough testing for help commands Problem: Not enough testing for help commands. Solution: Add a few more help tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/1565)
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 22:30:04 +0100
parents cb71a5468aca
children 55cf556d8ce1
line wrap: on
line source

" Tests for :help

func Test_help_restore_snapshot()
  help
  set buftype=
  help
  edit x
  help
  helpclose
endfunc

func Test_help_errors()
  call assert_fails('help doesnotexist', 'E149:')
  call assert_fails('help!', 'E478:')
endfunc