diff options
author | Nils Leuzinger <nilsl@student.ethz.ch> | 2018-04-05 21:04:11 +0200 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-04-05 21:04:11 +0200 |
commit | 912f632bf591377a69bf688f6a85668d93be8841 (patch) | |
tree | 2a970b78998ca400551c7ef7d025826f9207db76 /test/command_callback/test_scalac_command_callback.vader | |
parent | a2acdecbc2d03fbf03e74835086532b62e60665c (diff) | |
download | ale-912f632bf591377a69bf688f6a85668d93be8841.zip |
Add fsc linter for Scala (#1452)
* Add fsc as a Scala linter
* Pull reused code into `autoload/ale/` directory
* Include fsc into the README
* Add unit test for testing the scala handler
* Add unit test for scala's fsc linter
* Rename scala unit tests for clarity
* Fix typo in README
* Fix typos in doc/ale.txt
* Fix author headline
* Put methods for fsc commands back into fsc.vim
* Move command_callback tests to correct location
* Rewrite handler test so it actually tests handler
* Clarify description of test in test_scala_handler
Diffstat (limited to 'test/command_callback/test_scalac_command_callback.vader')
-rw-r--r-- | test/command_callback/test_scalac_command_callback.vader | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command_callback/test_scalac_command_callback.vader b/test/command_callback/test_scalac_command_callback.vader new file mode 100644 index 00000000..6bb31b3f --- /dev/null +++ b/test/command_callback/test_scalac_command_callback.vader @@ -0,0 +1,17 @@ +Before: + runtime ale_linters/scala/scalac.vim + +After: + call ale#linter#Reset() + +Given scala(An empty Scala file): +Execute(The default executable and command should be correct): + AssertEqual 'scalac', ale_linters#scala#scalac#GetExecutable(bufnr('')) + AssertEqual + \ ale#Escape('scalac') . ' -Ystop-after:parser %t', + \ ale_linters#scala#scalac#GetCommand(bufnr('')) + +Given scala.sbt(An empty SBT file): +Execute(scalac should not be run for sbt files): + AssertEqual '', ale_linters#scala#scalac#GetExecutable(bufnr('')) + AssertEqual '', ale_linters#scala#scalac#GetCommand(bufnr('')) |