mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Get tests to pass in Vim 8.1
This commit is contained in:
@@ -35,7 +35,6 @@ After:
|
||||
|
||||
unlet! g:i
|
||||
unlet! g:results
|
||||
unlet! g:item
|
||||
unlet! g:expected_results
|
||||
|
||||
delfunction TestCallback
|
||||
@@ -69,13 +68,7 @@ Execute(Linters should run with the default options):
|
||||
call ale#Lint()
|
||||
call ale#engine#WaitForJobs(2000)
|
||||
|
||||
let g:results = getloclist(0)
|
||||
|
||||
for g:item in g:results
|
||||
if has_key(g:item, 'module')
|
||||
call remove(g:item, 'module')
|
||||
endif
|
||||
endfor
|
||||
let g:results = ale#test#GetLoclistWithoutModule()
|
||||
|
||||
if g:results == g:expected_results
|
||||
break
|
||||
@@ -142,7 +135,7 @@ Execute(Linters should run in PowerShell too):
|
||||
\ 'pattern': '',
|
||||
\ 'valid': 1,
|
||||
\ },
|
||||
\], getloclist(0)
|
||||
\], ale#test#GetLoclistWithoutModule()
|
||||
endif
|
||||
|
||||
Execute(Previous errors should be removed when linters change):
|
||||
@@ -176,13 +169,7 @@ Execute(Previous errors should be removed when linters change):
|
||||
call ale#Lint()
|
||||
call ale#engine#WaitForJobs(2000)
|
||||
|
||||
let g:results = getloclist(0)
|
||||
|
||||
for g:item in g:results
|
||||
if has_key(g:item, 'module')
|
||||
call remove(g:item, 'module')
|
||||
endif
|
||||
endfor
|
||||
let g:results = ale#test#GetLoclistWithoutModule()
|
||||
|
||||
if g:results == g:expected_results
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user