mirror of
https://github.com/dense-analysis/ale
synced 2024-12-27 00:22:28 +00:00
0f55d371e9
* Update test scripts * Remove neovim 0.3 and 0.4 * Add neovim 0.6.1 Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: w0rp <devw0rp@gmail.com>
28 lines
712 B
Plaintext
28 lines
712 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('haskell', 'hie')
|
|
|
|
Save &filetype
|
|
let &filetype = 'haskell'
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The language string should be correct):
|
|
AssertLSPLanguage 'haskell'
|
|
|
|
Execute(The default executable should be correct):
|
|
AssertLinter 'hie',
|
|
\ ale#Escape('hie') . ' --lsp'
|
|
|
|
Execute(The project root should be detected correctly):
|
|
AssertLSPProject g:dir
|
|
|
|
call ale#test#SetFilename('../test-files/hie_paths/file.hs')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/hie_paths')
|
|
|
|
Execute(The executable should be configurable):
|
|
let g:ale_haskell_hie_executable = 'foobar'
|
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' --lsp'
|