diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-07-20 21:05:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 21:05:24 +0100 |
commit | 04fbea6e80e010ffc242cc13daed6279f5d5aadf (patch) | |
tree | 244df0f15ce16a73259e98dbb4d54fec56277195 /test/command_callback | |
parent | 0d37aaac7a6f2a6291d7db1032fe08196164fc73 (diff) | |
parent | ad986a8d821c343cafa363ebb4399fe589a373e1 (diff) | |
download | ale-04fbea6e80e010ffc242cc13daed6279f5d5aadf.zip |
Merge pull request #1736 from unpairedbracket/master
Add support for Fortran language server by @hansec
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/fortran-fortls-project/.fortls | 2 | ||||
-rw-r--r-- | test/command_callback/test_fortran_fortls_callback.vader | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/command_callback/fortran-fortls-project/.fortls b/test/command_callback/fortran-fortls-project/.fortls new file mode 100644 index 00000000..2c63c085 --- /dev/null +++ b/test/command_callback/fortran-fortls-project/.fortls @@ -0,0 +1,2 @@ +{ +} diff --git a/test/command_callback/test_fortran_fortls_callback.vader b/test/command_callback/test_fortran_fortls_callback.vader new file mode 100644 index 00000000..3be7ff4f --- /dev/null +++ b/test/command_callback/test_fortran_fortls_callback.vader @@ -0,0 +1,18 @@ +Before: + call ale#assert#SetUpLinterTest('fortran', 'language_server') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + AssertLinter 'fortls', ale#Escape('fortls') + +Execute(The project root should be detected correctly): + AssertLSPProject '' + + call ale#test#SetFilename('fortran-fortls-project/test.F90') + + AssertLSPProject ale#path#Simplify(g:dir . '/fortran-fortls-project') + +Execute(The language should be correct): + AssertLSPLanguage 'fortran' |