Mercurial > vim
changeset 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 | 55d9f1810486 |
children | b7678a70b23e |
files | src/testdir/test_help_tagjump.vim src/version.c |
diffstat | 2 files changed, 12 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_help_tagjump.vim +++ b/src/testdir/test_help_tagjump.vim @@ -102,36 +102,36 @@ func Test_help_complete() set rtp+=Xdir1/doc-ab set helplang= let list = s:get_cmd_compl_list(":h test") - call assert_equal(['h test-col@en', 'h test-col@ab', - \ 'h test-char@en', 'h test-char@ab'], list) + call assert_equal(sort(['h test-col@en', 'h test-col@ab', + \ 'h test-char@en', 'h test-char@ab']), sort(list)) " 'helplang=ab' and help file lang is 'en' and 'ab' set helplang=ab let list = s:get_cmd_compl_list(":h test") - call assert_equal(['h test-col', 'h test-col@en', - \ 'h test-char', 'h test-char@en'], list) + call assert_equal(sort(['h test-col', 'h test-col@en', + \ 'h test-char', 'h test-char@en']), sort(list)) " 'helplang=' and help file lang is 'en', 'ab' and 'ja' set rtp+=Xdir1/doc-ja set helplang= 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-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' set helplang=ab 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-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' set helplang=ab,ja 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-char@ja', 'h test-char@en'], list) + \ 'h test-char@ja', 'h test-char@en']), sort(list)) endif catch call assert_exception('X')