Files
ale/test/linter/test_roc_roc_language_server.vader
Benjamin Block f9de268816 Adding Roc language linters and fixers. (#4966)
* `roc_language_server`

* `roc format`

* `roc format annotate`
2025-05-05 15:01:45 +09:00

24 lines
788 B
Plaintext

Before:
call ale#assert#SetUpLinterTest('roc', 'roc_language_server')
After:
call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct):
AssertLinter 'roc_language_server', ale#Escape('roc_language_server')
Execute(The project root should be detected correctly in empty directory):
AssertLSPProject '.'
Execute(The project root should be detected correctly with main.roc):
call ale#test#SetFilename('../test-files/roc/main.roc')
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/roc')
Execute(The LSP values should be set correctly):
call ale#test#SetFilename('../test-files/roc/main.roc')
AssertLSPLanguage 'roc'
AssertLSPOptions {}
AssertLSPConfig {}
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/roc')