mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1071
Problem: New style tests are executed in arbitrary order. Solution: Sort the test function names. (Hirohito Higashi) Fix the quickfix test that depended on the order.
This commit is contained in:
parent
8a5115cf18
commit
cfc0a350a9
@ -68,7 +68,8 @@ function /^Test_
|
|||||||
redir END
|
redir END
|
||||||
let tests = split(substitute(@q, 'function \(\k*()\)', '\1', 'g'))
|
let tests = split(substitute(@q, 'function \(\k*()\)', '\1', 'g'))
|
||||||
|
|
||||||
for test in tests
|
" Execute the tests in alphabetical order.
|
||||||
|
for test in sort(tests)
|
||||||
if exists("*SetUp")
|
if exists("*SetUp")
|
||||||
call SetUp()
|
call SetUp()
|
||||||
endif
|
endif
|
||||||
|
@ -72,7 +72,7 @@ endfunction
|
|||||||
|
|
||||||
" Tests for the :colder, :cnewer, :lolder and :lnewer commands
|
" Tests for the :colder, :cnewer, :lolder and :lnewer commands
|
||||||
" Note that this test assumes that a quickfix/location list is
|
" Note that this test assumes that a quickfix/location list is
|
||||||
" already set by previous tests
|
" already set by the caller.
|
||||||
function XageTests(cchar)
|
function XageTests(cchar)
|
||||||
let Xolder = a:cchar . 'older'
|
let Xolder = a:cchar . 'older'
|
||||||
let Xnewer = a:cchar . 'newer'
|
let Xnewer = a:cchar . 'newer'
|
||||||
@ -116,7 +116,11 @@ function XageTests(cchar)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function Test_cage()
|
function Test_cage()
|
||||||
|
let list = [{'bufnr': 1, 'lnum': 1}]
|
||||||
|
call setqflist(list)
|
||||||
call XageTests('c')
|
call XageTests('c')
|
||||||
|
|
||||||
|
call setloclist(0, list)
|
||||||
call XageTests('l')
|
call XageTests('l')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1071,
|
||||||
/**/
|
/**/
|
||||||
1070,
|
1070,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user