Mercurial > vim
comparison src/testdir/test_help.vim @ 19277:1b02482e6a61 v8.2.0197
patch 8.2.0197: some Ex commands not sufficiently tested
Commit: https://github.com/vim/vim/commit/ea3db914c0fa35797ad73f6d5bb3a4288d690065
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 2 15:32:13 2020 +0100
patch 8.2.0197: some Ex commands not sufficiently tested
Problem: Some Ex commands not sufficiently tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5565)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Feb 2020 15:45:03 +0100 |
parents | 5bef1043abff |
children | 2f0f308c069c |
comparison
equal
deleted
inserted
replaced
19276:c062923a350f | 19277:1b02482e6a61 |
---|---|
10 endfunc | 10 endfunc |
11 | 11 |
12 func Test_help_errors() | 12 func Test_help_errors() |
13 call assert_fails('help doesnotexist', 'E149:') | 13 call assert_fails('help doesnotexist', 'E149:') |
14 call assert_fails('help!', 'E478:') | 14 call assert_fails('help!', 'E478:') |
15 if has('multi_lang') | |
16 call assert_fails('help help@xy', 'E661:') | |
17 endif | |
18 | |
19 let save_hf = &helpfile | |
20 set helpfile=help_missing | |
21 help | |
22 call assert_equal(1, winnr('$')) | |
23 call assert_notequal('help', &buftype) | |
24 let &helpfile = save_hf | |
25 | |
26 call assert_fails('help ' . repeat('a', 1048), 'E149:') | |
15 | 27 |
16 new | 28 new |
17 set keywordprg=:help | 29 set keywordprg=:help |
18 call setline(1, " ") | 30 call setline(1, " ") |
19 call assert_fails('normal VK', 'E349:') | 31 call assert_fails('normal VK', 'E349:') |