diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-22 19:04:45 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-22 19:04:55 +0100 |
commit | 6dc737cda1d640d2067b417ec270fbb623e3f960 (patch) | |
tree | 1804f0f4ca0f01957104b5cb5bda0c21f43893c3 /test/lsp/test_lsp_command_formatting.vader | |
parent | 899b61c5cc4564abb8a697532dc1376896c8e70d (diff) | |
download | ale-6dc737cda1d640d2067b417ec270fbb623e3f960.zip |
Check LSP capabilities before using them
Diffstat (limited to 'test/lsp/test_lsp_command_formatting.vader')
-rw-r--r-- | test/lsp/test_lsp_command_formatting.vader | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/lsp/test_lsp_command_formatting.vader b/test/lsp/test_lsp_command_formatting.vader index f436397f..9d2c84ee 100644 --- a/test/lsp/test_lsp_command_formatting.vader +++ b/test/lsp/test_lsp_command_formatting.vader @@ -23,15 +23,14 @@ Execute(Command formatting should be applied correctly for LSP linters): \ 'executable': has('win32') ? 'cmd': 'true', \ 'command': '%e --foo', \ }, - \ {->0} \) if has('win32') AssertEqual - \ ['cmd', 'cmd /s/c "cmd --foo"', '/foo/bar'], - \ g:args[:2] + \ ['cmd', 'cmd /s/c "cmd --foo"', {}], + \ g:args else AssertEqual - \ ['true', [&shell, '-c', '''true'' --foo'], '/foo/bar'], - \ g:args[:2] + \ ['true', [&shell, '-c', '''true'' --foo'], {}], + \ g:args endif |