vim-patch:7.4.1821

Problem:    Test fails on MS-Windows.
Solution:   Sort the completion results.

4ed6b2e2d7
This commit is contained in:
Jurica Bradaric
2016-09-25 22:51:43 +02:00
parent 9114790c4c
commit b6f8c35cf7
2 changed files with 11 additions and 11 deletions

View File

@@ -124,36 +124,36 @@ func Test_help_complete()
set rtp+=Xdir1/doc-ab set rtp+=Xdir1/doc-ab
set helplang= set helplang=
let list = s:get_cmd_compl_list(":h test") let list = s:get_cmd_compl_list(":h test")
call assert_equal(['h test-col@en', 'h test-col@ab', call assert_equal(sort(['h test-col@en', 'h test-col@ab',
\ 'h test-char@en', 'h test-char@ab'], list) \ 'h test-char@en', 'h test-char@ab']), sort(list))
" 'helplang=ab' and help file lang is 'en' and 'ab' " 'helplang=ab' and help file lang is 'en' and 'ab'
set helplang=ab set helplang=ab
let list = s:get_cmd_compl_list(":h test") let list = s:get_cmd_compl_list(":h test")
call assert_equal(['h test-col', 'h test-col@en', call assert_equal(sort(['h test-col', 'h test-col@en',
\ 'h test-char', 'h test-char@en'], list) \ 'h test-char', 'h test-char@en']), sort(list))
" 'helplang=' and help file lang is 'en', 'ab' and 'ja' " 'helplang=' and help file lang is 'en', 'ab' and 'ja'
set rtp+=Xdir1/doc-ja set rtp+=Xdir1/doc-ja
set helplang= set helplang=
let list = s:get_cmd_compl_list(":h test") let list = s:get_cmd_compl_list(":h test")
call assert_equal(['h test-col@en', 'h test-col@ab', call assert_equal(sort(['h test-col@en', 'h test-col@ab',
\ 'h test-col@ja', 'h test-char@en', \ 'h test-col@ja', 'h test-char@en',
\ 'h test-char@ab', 'h test-char@ja'], list) \ 'h test-char@ab', 'h test-char@ja']), sort(list))
" 'helplang=ab' and help file lang is 'en', 'ab' and 'ja' " 'helplang=ab' and help file lang is 'en', 'ab' and 'ja'
set helplang=ab set helplang=ab
let list = s:get_cmd_compl_list(":h test") let list = s:get_cmd_compl_list(":h test")
call assert_equal(['h test-col', 'h test-col@en', call assert_equal(sort(['h test-col', 'h test-col@en',
\ 'h test-col@ja', 'h test-char', \ 'h test-col@ja', 'h test-char',
\ 'h test-char@en', 'h test-char@ja'], list) \ 'h test-char@en', 'h test-char@ja']), sort(list))
" 'helplang=ab,ja' and help file lang is 'en', 'ab' and 'ja' " 'helplang=ab,ja' and help file lang is 'en', 'ab' and 'ja'
set helplang=ab,ja set helplang=ab,ja
let list = s:get_cmd_compl_list(":h test") let list = s:get_cmd_compl_list(":h test")
call assert_equal(['h test-col', 'h test-col@ja', call assert_equal(sort(['h test-col', 'h test-col@ja',
\ 'h test-col@en', 'h test-char', \ 'h test-col@en', 'h test-char',
\ 'h test-char@ja', 'h test-char@en'], list) \ 'h test-char@ja', 'h test-char@en']), sort(list))
endif endif
catch catch
call assert_exception('X') call assert_exception('X')

View File

@@ -620,7 +620,7 @@ static int included_patches[] = {
// 1824 NA // 1824 NA
// 1823, // 1823,
// 1822 NA // 1822 NA
// 1821, 1821,
1820, 1820,
// 1819 NA // 1819 NA
1818, 1818,