patch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english

Commit: 
https://github.com/vim/vim/commit/ae7e61c928b4adaa220e59ecebc75ef630674207
Author: Julio B <julio.ba...@gmail.com>
Date:   Tue Apr 16 22:55:04 2024 +0200

    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: #14312
    closes: #14566
    
    Signed-off-by: Julio B <julio.ba...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_taglist.vim b/src/testdir/test_taglist.vim
index 39e78bcb0..2dd236683 100644
--- a/src/testdir/test_taglist.vim
+++ b/src/testdir/test_taglist.vim
@@ -100,7 +100,10 @@ func Test_tagfiles()
 
   help
   let tf = tagfiles()
-  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('$VIMRUNTIME/doc/tags'), ':p:gs?\?/?'),
        \           fnamemodify(tf[0], ':p:gs?\?/?'))
   helpclose
diff --git a/src/version.c b/src/version.c
index ba64d8fe1..68b58b0b4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    342,
 /**/
     341,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rwq8t-00Ebso-3B%40256bit.org.

Raspunde prin e-mail lui