mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-28 06:46:52 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -17,20 +17,20 @@ Execute(The default executable should be correct):
|
||||
Execute(The project root should be detected correctly):
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('ols_paths/file.re')
|
||||
call ale#test#SetFilename('../test-files/ols/file.re')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/ols_paths')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ols')
|
||||
|
||||
Execute(The local executable should be used when available):
|
||||
call ale#test#SetFilename('ols_paths/file.re')
|
||||
call ale#test#SetFilename('../test-files/ols/file.re')
|
||||
|
||||
AssertLinter
|
||||
\ ale#path#Simplify(g:dir . '/ols_paths/node_modules/.bin/ocaml-language-server'),
|
||||
\ ale#Escape(ale#path#Simplify(g:dir . '/ols_paths/node_modules/.bin/ocaml-language-server')) . ' --stdio'
|
||||
\ ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server'),
|
||||
\ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/ols/node_modules/.bin/ocaml-language-server')) . ' --stdio'
|
||||
|
||||
Execute(The gloabl executable should always be used when use_global is set):
|
||||
let g:ale_reason_ols_use_global = 1
|
||||
call ale#test#SetFilename('ols_paths/file.re')
|
||||
call ale#test#SetFilename('../test-files/ols/file.re')
|
||||
|
||||
AssertLinter 'ocaml-language-server',
|
||||
\ ale#Escape('ocaml-language-server') . ' --stdio'
|
||||
|
||||
Reference in New Issue
Block a user