2017-07-26 05:29:46 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('scala', 'scalac')
|
2017-07-26 05:29:46 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-07-26 05:29:46 -04:00
|
|
|
|
|
|
|
Given scala(An empty Scala file):
|
|
|
|
Execute(The default executable and command should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'scalac', ale#Escape('scalac') . ' -Ystop-after:parser %t'
|
2017-07-26 05:29:46 -04:00
|
|
|
|
|
|
|
Given scala.sbt(An empty SBT file):
|
|
|
|
Execute(scalac should not be run for sbt files):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter '', ''
|