mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Try to fix Windows tests again
This commit is contained in:
@@ -230,6 +230,11 @@ Execute(Should apply filename mpapings):
|
|||||||
ALEFix
|
ALEFix
|
||||||
call ale#test#FlushJobs()
|
call ale#test#FlushJobs()
|
||||||
|
|
||||||
|
if has('win32')
|
||||||
|
" We have to correct the output on Windows.
|
||||||
|
call setline(1, substitute(getline(1), '\r', '', ''))
|
||||||
|
endif
|
||||||
|
|
||||||
Expect(The mapped filename should be printed):
|
Expect(The mapped filename should be printed):
|
||||||
/some/fake/path/test.txt
|
/some/fake/path/test.txt
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ After:
|
|||||||
Execute(FixLocList should map filenames):
|
Execute(FixLocList should map filenames):
|
||||||
" Paths converted back into temporary filenames shouldn't be included.
|
" Paths converted back into temporary filenames shouldn't be included.
|
||||||
let g:ale_filename_mappings = {
|
let g:ale_filename_mappings = {
|
||||||
\ 'linter2': [['/xxx', '/data']],
|
\ 'linter2': [['/xxx/', '/data/']],
|
||||||
\ 'linter1': [
|
\ 'linter1': [
|
||||||
\ ['/bar', '/data/special'],
|
\ ['/bar/', '/data/special/'],
|
||||||
\ ['/foo', '/data'],
|
\ ['/foo/', '/data/'],
|
||||||
\ [
|
\ [
|
||||||
\ ale#path#Simplify(fnamemodify(ale#util#Tempname(), ':h:h')),
|
\ ale#path#Simplify(fnamemodify(ale#util#Tempname(), ':h:h')) . '/',
|
||||||
\ '/x-tmp',
|
\ '/x-tmp/',
|
||||||
\ ],
|
\ ],
|
||||||
\ ],
|
\ ],
|
||||||
\}
|
\}
|
||||||
|
|||||||
Reference in New Issue
Block a user