mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 08:13:45 +00:00
vim-patch:9.1.0342: tests: test_taglist fails when 'helplang' contains non-english
Problem: tests: test_taglist fails when 'helplang' contains non-english
Solution: Allow 1 or 2 tagfiles for now (Julio B)
related: vim/vim#14312
closes: vim/vim#14566
ae7e61c928
Co-authored-by: Julio B <julio.bacel@gmail.com>
This commit is contained in:
@@ -107,7 +107,10 @@ func Test_tagfiles()
|
||||
" Nvim: expectation(s) based on tags in build dir (added to &rtp).
|
||||
" Filter out the '../../../runtime/doc/tags'.
|
||||
call filter(tf, 'v:val != "../../../runtime/doc/tags"')
|
||||
call assert_equal(1, len(tf))
|
||||
" if 'helplang includes another language, then we may find
|
||||
" 2 tagfiles (e.g.: for EN and RU)
|
||||
" we may need to adjust this, if further translated help files are included
|
||||
call assert_inrange(1, 2, len(tf))
|
||||
call assert_equal(fnamemodify(expand('$BUILD_DIR/runtime/doc/tags'), ':p:gs?\\?/?'),
|
||||
\ fnamemodify(tf[0], ':p:gs?\\?/?'))
|
||||
helpclose
|
||||
|
||||
Reference in New Issue
Block a user