mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
25 lines
917 B
Plaintext
25 lines
917 B
Plaintext
Before:
|
|
Save g:ale_toml_tombi_online
|
|
call ale#assert#SetUpLinterTest('toml', 'tombi')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'tombi', ale#Escape('tombi') . ' lsp --offline'
|
|
|
|
Execute(The default executable path should obey `toml_tombi_online`):
|
|
let g:ale_toml_tombi_online = 1
|
|
|
|
AssertLinter 'tombi', ale#Escape('tombi') . ' lsp'
|
|
|
|
Execute(The project root should be detected correctly with a configuration file):
|
|
call ale#test#SetFilename('../test-files/toml/tombi/tombitoml/subdir/file.ext')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/toml/tombi/tombitoml')
|
|
|
|
Execute(The project root should be detected correctly in Python projects):
|
|
call ale#test#SetFilename('../test-files/toml/tombi/pyprojecttoml/subdir/file.ext')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/toml/tombi/pyprojecttoml')
|