]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0342: tests: test_taglist fails when 'helplang' contains non-english v9.1.0342
authorJulio B <julio.bacel@gmail.com>
Tue, 16 Apr 2024 20:55:04 +0000 (22:55 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 16 Apr 2024 20:59:31 +0000 (22:59 +0200)
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.bacel@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_taglist.vim
src/version.c

index 39e78bcb0509cb81d283fbf7f267f306cb8c6df8..2dd236683b20f88c100533af124d07d3cd42984c 100644 (file)
@@ -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
index ba64d8fe17c1e3dd10e854ac39f7f2111296e662..68b58b0b4e5b4270d93a63c2c9fd3ab197b0e77f 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    342,
 /**/
     341,
 /**/