@@ -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' )
0 commit comments