e149692cc9
subrepo: subdir: "dotfiles/.vim/plugged/ale" merged: "e4b205440" upstream: origin: "https://github.com/dense-analysis/ale.git" branch: "master" commit: "e4b205440" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
22 lines
748 B
Text
22 lines
748 B
Text
Before:
|
|
call ale#assert#SetUpLinterTest('r', 'languageserver')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'Rscript', 'Rscript --no-save --no-restore --no-site-file --no-init-file -e ' . ale#Escape('languageserver::run()')
|
|
|
|
Execute(The project root should be detected correctly):
|
|
AssertLSPProject '.'
|
|
|
|
call ale#test#SetFilename('../test-files/r/dummy/test.R')
|
|
|
|
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/r')
|
|
|
|
Execute(Should accept configuration settings):
|
|
AssertLSPConfig {}
|
|
|
|
let b:ale_r_languageserver_config = {'r': {'lsp': {'debug': 'true', 'diagnostics': 'true'}}}
|
|
|
|
AssertLSPConfig {'r': {'lsp': {'debug': 'true', 'diagnostics': 'true'}}}
|