diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-01-17 14:20:23 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-01-17 15:59:22 +0100 |
commit | 9d6bffd517e4b262b85c27a4ff620a2b1aae4a68 (patch) | |
tree | f848849e49334c8690da20c1d6e7e984d33bbb6a /src | |
parent | 279043d62526674118e4ddb531f8cf7195060928 (diff) | |
download | rneovim-9d6bffd517e4b262b85c27a4ff620a2b1aae4a68.tar.gz rneovim-9d6bffd517e4b262b85c27a4ff620a2b1aae4a68.tar.bz2 rneovim-9d6bffd517e4b262b85c27a4ff620a2b1aae4a68.zip |
tests: fix Test_help_tagjump()
The Vim version of Test_help_tagjump() tests for `:help sm?le` here. That
command got removed from Nvim, so the test was changed to check against `:help
sp?it` instead.
The new test already handled the case that on Win `:h split` would jump to the
entry for split() and on all other systems to the entry for :split.
Then this commit happened:
bb3aa824b lua/stdlib: vim.inspect, string functions
Since then `:h split` would jump to split() for macOS as well! I'm not sure why.
Anyway, instead of adding another check for has('mac'), we change the test once
more to be more akin to the original test. Instead of testing for :smile, which
is exclusive to Vim, we check against :checkhealth, which is exclusive to Nvim.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_help_tagjump.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_help_tagjump.vim b/src/nvim/testdir/test_help_tagjump.vim index c873487b92..a6494c531c 100644 --- a/src/nvim/testdir/test_help_tagjump.vim +++ b/src/nvim/testdir/test_help_tagjump.vim @@ -28,9 +28,9 @@ func Test_help_tagjump() call assert_true(getline('.') =~ '\*quotestar\*') helpclose - help sp?it + help ch?ckhealth call assert_equal("help", &filetype) - call assert_true(getline('.') =~ '\*'.(has('win32') ? 'split()' : ':split').'\*') + call assert_true(getline('.') =~ '\*:checkhealth\*') helpclose help :? |