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.
redir END
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")
call SetUp()
endif
" Tests for the :colder, :cnewer, :lolder and :lnewer commands
" Note that this test assumes that a quickfix/location list is
-" already set by previous tests
+" already set by the caller.
function XageTests(cchar)
let Xolder = a:cchar . 'older'
let Xnewer = a:cchar . 'newer'
endfunction
function Test_cage()
+ let list = [{'bufnr': 1, 'lnum': 1}]
+ call setqflist(list)
call XageTests('c')
+
+ call setloclist(0, list)
call XageTests('l')
endfunction
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1071,
/**/
1070,
/**/