Skip to content

Commit 4ed6b2e

Browse files
committed
patch 7.4.1821
Problem: Test fails on MS-Windows. Solution: Sort the completion results.
1 parent 9ccaae0 commit 4ed6b2e

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

src/testdir/test_help_tagjump.vim

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,36 +102,36 @@ func Test_help_complete()
102102
set rtp+=Xdir1/doc-ab
103103
set helplang=
104104
let list = s:get_cmd_compl_list(":h test")
105-
call assert_equal(['h test-col@en', 'h test-col@ab',
106-
\ 'h test-char@en', 'h test-char@ab'], list)
105+
call assert_equal(sort(['h test-col@en', 'h test-col@ab',
106+
\ 'h test-char@en', 'h test-char@ab']), sort(list))
107107

108108
" 'helplang=ab' and help file lang is 'en' and 'ab'
109109
set helplang=ab
110110
let list = s:get_cmd_compl_list(":h test")
111-
call assert_equal(['h test-col', 'h test-col@en',
112-
\ 'h test-char', 'h test-char@en'], list)
111+
call assert_equal(sort(['h test-col', 'h test-col@en',
112+
\ 'h test-char', 'h test-char@en']), sort(list))
113113

114114
" 'helplang=' and help file lang is 'en', 'ab' and 'ja'
115115
set rtp+=Xdir1/doc-ja
116116
set helplang=
117117
let list = s:get_cmd_compl_list(":h test")
118-
call assert_equal(['h test-col@en', 'h test-col@ab',
118+
call assert_equal(sort(['h test-col@en', 'h test-col@ab',
119119
\ 'h test-col@ja', 'h test-char@en',
120-
\ 'h test-char@ab', 'h test-char@ja'], list)
120+
\ 'h test-char@ab', 'h test-char@ja']), sort(list))
121121

122122
" 'helplang=ab' and help file lang is 'en', 'ab' and 'ja'
123123
set helplang=ab
124124
let list = s:get_cmd_compl_list(":h test")
125-
call assert_equal(['h test-col', 'h test-col@en',
125+
call assert_equal(sort(['h test-col', 'h test-col@en',
126126
\ 'h test-col@ja', 'h test-char',
127-
\ 'h test-char@en', 'h test-char@ja'], list)
127+
\ 'h test-char@en', 'h test-char@ja']), sort(list))
128128

129129
" 'helplang=ab,ja' and help file lang is 'en', 'ab' and 'ja'
130130
set helplang=ab,ja
131131
let list = s:get_cmd_compl_list(":h test")
132-
call assert_equal(['h test-col', 'h test-col@ja',
132+
call assert_equal(sort(['h test-col', 'h test-col@ja',
133133
\ 'h test-col@en', 'h test-char',
134-
\ 'h test-char@ja', 'h test-char@en'], list)
134+
\ 'h test-char@ja', 'h test-char@en']), sort(list))
135135
endif
136136
catch
137137
call assert_exception('X')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ static char *(features[]) =
753753

754754
static int included_patches[] =
755755
{ /* Add new patch number below this line */
756+
/**/
757+
1821,
756758
/**/
757759
1820,
758760
/**/

0 commit comments

Comments
 (0)