comparison src/testdir/test_help_tagjump.vim @ 9072:f60bdac6cc2c v7.4.1821

commit https://github.com/vim/vim/commit/4ed6b2e2d7fd5959fb9b9f608935d47305c4bbe4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 7 22:28:53 2016 +0200 patch 7.4.1821 Problem: Test fails on MS-Windows. Solution: Sort the completion results.
author Christian Brabandt <cb@256bit.org>
date Sat, 07 May 2016 22:30:05 +0200
parents 0bb25b026fc9
children 6e80397a592c
comparison
equal deleted inserted replaced
9071:55d9f1810486 9072:f60bdac6cc2c
100 100
101 " 'helplang=' and help file lang is 'en' and 'ab' 101 " 'helplang=' and help file lang is 'en' and 'ab'
102 set rtp+=Xdir1/doc-ab 102 set rtp+=Xdir1/doc-ab
103 set helplang= 103 set helplang=
104 let list = s:get_cmd_compl_list(":h test") 104 let list = s:get_cmd_compl_list(":h test")
105 call assert_equal(['h test-col@en', 'h test-col@ab', 105 call assert_equal(sort(['h test-col@en', 'h test-col@ab',
106 \ 'h test-char@en', 'h test-char@ab'], list) 106 \ 'h test-char@en', 'h test-char@ab']), sort(list))
107 107
108 " 'helplang=ab' and help file lang is 'en' and 'ab' 108 " 'helplang=ab' and help file lang is 'en' and 'ab'
109 set helplang=ab 109 set helplang=ab
110 let list = s:get_cmd_compl_list(":h test") 110 let list = s:get_cmd_compl_list(":h test")
111 call assert_equal(['h test-col', 'h test-col@en', 111 call assert_equal(sort(['h test-col', 'h test-col@en',
112 \ 'h test-char', 'h test-char@en'], list) 112 \ 'h test-char', 'h test-char@en']), sort(list))
113 113
114 " 'helplang=' and help file lang is 'en', 'ab' and 'ja' 114 " 'helplang=' and help file lang is 'en', 'ab' and 'ja'
115 set rtp+=Xdir1/doc-ja 115 set rtp+=Xdir1/doc-ja
116 set helplang= 116 set helplang=
117 let list = s:get_cmd_compl_list(":h test") 117 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',
119 \ 'h test-col@ja', 'h test-char@en', 119 \ '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))
121 121
122 " 'helplang=ab' and help file lang is 'en', 'ab' and 'ja' 122 " 'helplang=ab' and help file lang is 'en', 'ab' and 'ja'
123 set helplang=ab 123 set helplang=ab
124 let list = s:get_cmd_compl_list(":h test") 124 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',
126 \ 'h test-col@ja', 'h test-char', 126 \ '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))
128 128
129 " 'helplang=ab,ja' and help file lang is 'en', 'ab' and 'ja' 129 " 'helplang=ab,ja' and help file lang is 'en', 'ab' and 'ja'
130 set helplang=ab,ja 130 set helplang=ab,ja
131 let list = s:get_cmd_compl_list(":h test") 131 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',
133 \ 'h test-col@en', 'h test-char', 133 \ '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))
135 endif 135 endif
136 catch 136 catch
137 call assert_exception('X') 137 call assert_exception('X')
138 finally 138 finally
139 call s:doc_config_teardown() 139 call s:doc_config_teardown()