Fix Flow and Idris tests for Windows
This commit is contained in:
parent
5731616cd2
commit
4634b1be93
2 changed files with 29 additions and 25 deletions
|
@ -260,7 +260,7 @@ Execute(The flow handler should handle relative paths):
|
||||||
\ "descr": "React element `Foo`",
|
\ "descr": "React element `Foo`",
|
||||||
\ "type": "Blame",
|
\ "type": "Blame",
|
||||||
\ "loc": {
|
\ "loc": {
|
||||||
\ "source": "vim-ale-flow/index.js",
|
\ "source": expand('%:p'),
|
||||||
\ "type": "SourceFile",
|
\ "type": "SourceFile",
|
||||||
\ "start": {
|
\ "start": {
|
||||||
\ "line": 6,
|
\ "line": 6,
|
||||||
|
@ -273,7 +273,7 @@ Execute(The flow handler should handle relative paths):
|
||||||
\ "offset": 108
|
\ "offset": 108
|
||||||
\ }
|
\ }
|
||||||
\ },
|
\ },
|
||||||
\ "path": "vim-ale-flow/index.js",
|
\ "path": expand('%:p'),
|
||||||
\ "line": 6,
|
\ "line": 6,
|
||||||
\ "endline": 6,
|
\ "endline": 6,
|
||||||
\ "start": 3,
|
\ "start": 3,
|
||||||
|
@ -318,7 +318,7 @@ Execute(The flow handler should handle relative paths):
|
||||||
\ "descr": "props of React element `Foo`",
|
\ "descr": "props of React element `Foo`",
|
||||||
\ "type": "Blame",
|
\ "type": "Blame",
|
||||||
\ "loc": {
|
\ "loc": {
|
||||||
\ "source": "vim-ale-flow/index.js",
|
\ "source": expand('%:p'),
|
||||||
\ "type": "SourceFile",
|
\ "type": "SourceFile",
|
||||||
\ "start": {
|
\ "start": {
|
||||||
\ "line": 6,
|
\ "line": 6,
|
||||||
|
@ -331,7 +331,7 @@ Execute(The flow handler should handle relative paths):
|
||||||
\ "offset": 108
|
\ "offset": 108
|
||||||
\ }
|
\ }
|
||||||
\ },
|
\ },
|
||||||
\ "path": "vim-ale-flow/index.js",
|
\ "path": expand('%:p'),
|
||||||
\ "line": 6,
|
\ "line": 6,
|
||||||
\ "endline": 6,
|
\ "endline": 6,
|
||||||
\ "start": 3,
|
\ "start": 3,
|
||||||
|
|
|
@ -12,7 +12,11 @@ After:
|
||||||
call ale#linter#Reset()
|
call ale#linter#Reset()
|
||||||
|
|
||||||
Execute(The idris handler should parse messages that reference a single column):
|
Execute(The idris handler should parse messages that reference a single column):
|
||||||
call ale#test#SetFilename('/tmp/foo.idr')
|
if has('win32')
|
||||||
|
call ale#test#SetFilename($TEMP . '\foo.idr')
|
||||||
|
else
|
||||||
|
call ale#test#SetFilename('/tmp/foo.idr')
|
||||||
|
endif
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ [
|
\ [
|
||||||
|
@ -24,21 +28,21 @@ Execute(The idris handler should parse messages that reference a single column):
|
||||||
\ }
|
\ }
|
||||||
\ ],
|
\ ],
|
||||||
\ ale_linters#idris#idris#Handle(bufnr(''), [
|
\ ale_linters#idris#idris#Handle(bufnr(''), [
|
||||||
\ '/tmp/foo.idr:4:5:',
|
\ expand('%:p') . ':4:5:',
|
||||||
\ 'When checking right hand side of main with expected type',
|
\ 'When checking right hand side of main with expected type',
|
||||||
\ ' IO ()',
|
\ ' IO ()',
|
||||||
\ '',
|
\ '',
|
||||||
\ 'When checking an application of function Prelude.Monad.>>=:',
|
\ 'When checking an application of function Prelude.Monad.>>=:',
|
||||||
\ ' Type mismatch between',
|
\ ' Type mismatch between',
|
||||||
\ ' IO () (Type of putStrLn _)',
|
\ ' IO () (Type of putStrLn _)',
|
||||||
\ ' and',
|
\ ' and',
|
||||||
\ ' _ -> _ (Is putStrLn _ applied to too many arguments?)',
|
\ ' _ -> _ (Is putStrLn _ applied to too many arguments?)',
|
||||||
\ '',
|
\ '',
|
||||||
\ ' Specifically:',
|
\ ' Specifically:',
|
||||||
\ ' Type mismatch between',
|
\ ' Type mismatch between',
|
||||||
\ ' IO',
|
\ ' IO',
|
||||||
\ ' and',
|
\ ' and',
|
||||||
\ ' \uv => _ -> uv',
|
\ ' \uv => _ -> uv',
|
||||||
\ ])
|
\ ])
|
||||||
|
|
||||||
Execute(The idris handler should parse messages that reference a column range):
|
Execute(The idris handler should parse messages that reference a column range):
|
||||||
|
@ -54,9 +58,9 @@ Execute(The idris handler should parse messages that reference a column range):
|
||||||
\ }
|
\ }
|
||||||
\ ],
|
\ ],
|
||||||
\ ale_linters#idris#idris#Handle(bufnr(''), [
|
\ ale_linters#idris#idris#Handle(bufnr(''), [
|
||||||
\ '/tmp/foo.idr:11:11-13:',
|
\ expand('%:p') . ':11:11-13:',
|
||||||
\ 'When checking right hand side of Main.case block in main at /tmp/foo.idr:10:10 with expected type',
|
\ 'When checking right hand side of Main.case block in main at /tmp/foo.idr:10:10 with expected type',
|
||||||
\ ' IO ()',
|
\ ' IO ()',
|
||||||
\ '',
|
\ '',
|
||||||
\ 'Last statement in do block must be an expression',
|
\ 'Last statement in do block must be an expression',
|
||||||
\ ])
|
\ ])
|
||||||
|
|
Reference in a new issue