diff options
author | toastal <toastal@protonmail.com> | 2020-12-21 10:26:09 +0700 |
---|---|---|
committer | toastal <toastal@protonmail.com> | 2020-12-21 10:26:09 +0700 |
commit | 9c7e1fe4ddb6729d2518b4102ae203ac00f8bc05 (patch) | |
tree | 53cc5b0b1e8036269a13535f6a65542ae40aa72e /test/command_callback/test_r_languageserver_callbacks.vader | |
parent | 42e4b148616981234425b31d2858c62f30e4153d (diff) | |
parent | f996ede5999c99b1b3e3cecc02dbd06cb286d3ff (diff) | |
download | ale-9c7e1fe4ddb6729d2518b4102ae203ac00f8bc05.zip |
merging master
Diffstat (limited to 'test/command_callback/test_r_languageserver_callbacks.vader')
-rw-r--r-- | test/command_callback/test_r_languageserver_callbacks.vader | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/command_callback/test_r_languageserver_callbacks.vader b/test/command_callback/test_r_languageserver_callbacks.vader new file mode 100644 index 00000000..9a4a1f87 --- /dev/null +++ b/test/command_callback/test_r_languageserver_callbacks.vader @@ -0,0 +1,22 @@ +Before: + call ale#assert#SetUpLinterTest('r', 'languageserver') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + AssertLinter 'Rscript', 'Rscript --vanilla -e ' . ale#Escape('languageserver::run()') + +Execute(The project root should be detected correctly): + AssertLSPProject '.' + + call ale#test#SetFilename('r_paths/dummy/test.R') + + AssertLSPProject ale#path#Simplify(g:dir . '/r_paths') + +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'}}} |