mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('lean', 'lake')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'lake', ale#Escape('lake') . ' serve'
|
|
|
|
Execute(The project root should be detected correctly without a lakefile):
|
|
AssertLSPProject '.'
|
|
|
|
Execute(The project root should be detected correctly from .toml):
|
|
call ale#test#SetFilename('../test-files/lean/lakefile_toml/lakefile.toml')
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/lean/lakefile_toml')
|
|
|
|
Execute(The project root should be detected correctly from .lean):
|
|
call ale#test#SetFilename('../test-files/lean/lakefile_lean/lakefile.lean')
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/lean/lakefile_lean')
|
|
|
|
Execute(The LSP values should be set correctly):
|
|
call ale#test#SetFilename('../test-files/lean/lakefile_lean/Main.lean')
|
|
|
|
AssertLSPLanguage 'lean'
|
|
AssertLSPOptions {}
|
|
AssertLSPConfig {}
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/lean/lakefile_lean')
|