diff options
author | ckelsel <ckelsel@hotmail.com> | 2018-02-04 16:02:35 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2018-02-04 16:04:03 +0800 |
commit | 40d6a95670d26aadef3451d32103e6d74a1a006b (patch) | |
tree | 70d84156e31a220d8f8a9d21020f879684a47108 | |
parent | e2afcfb020fa16b465dd25d3455cd00487e68915 (diff) | |
download | rneovim-40d6a95670d26aadef3451d32103e6d74a1a006b.tar.gz rneovim-40d6a95670d26aadef3451d32103e6d74a1a006b.tar.bz2 rneovim-40d6a95670d26aadef3451d32103e6d74a1a006b.zip |
vim-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 vim/vim#1565)
https://github.com/vim/vim/commit/751ba616d1c47de2c273b269df06c36a7ed141a2
-rw-r--r-- | src/nvim/testdir/test_help_tagjump.vim | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_help_tagjump.vim b/src/nvim/testdir/test_help_tagjump.vim index 65d99c644c..b9e056b291 100644 --- a/src/nvim/testdir/test_help_tagjump.vim +++ b/src/nvim/testdir/test_help_tagjump.vim @@ -18,6 +18,52 @@ func Test_help_tagjump() call assert_true(getline('.') =~ '\*help.txt\*') helpclose + help | + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*bar\*') + helpclose + + help "* + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*quotestar\*') + helpclose + + help sm?le + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*:smile\*') + helpclose + + help :? + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*:?\*') + helpclose + + help FileW*Post + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*FileWritePost\*') + helpclose + + help `ls` + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*:ls\*') + helpclose + + help ^X + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*CTRL-X\*') + helpclose + + help i_^_CTRL-D + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*i_^_CTRL-D\*') + helpclose + + exec "help \<C-V>" + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*CTRL-V\*') + helpclose + + exec "help! ('textwidth'" call assert_equal("help", &filetype) call assert_true(getline('.') =~ "\\*'textwidth'\\*") @@ -47,6 +93,16 @@ func Test_help_tagjump() call assert_equal("help", &filetype) call assert_true(getline('.') =~ '\*{address}\*') helpclose + + exusage + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*:index\*') + helpclose + + viusage + call assert_equal("help", &filetype) + call assert_true(getline('.') =~ '\*normal-index\*') + helpclose endfunc let s:langs = ['en', 'ab', 'ja'] |