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:
Jan Edmund Lazo
2026-06-09 23:28:35 -04:00
parent 1c8b988bf7
commit b402a1221f

View File

@@ -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