summaryrefslogtreecommitdiff
path: root/test/command_callback/test_scalac_command_callback.vader
blob: 6bb31b3fb2641fe7ebba0c451082cd9b161636dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(''))