2018-03-25 17:33:24 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('mercury', 'mmc')
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2021-03-01 20:11:10 +00:00
|
|
|
AssertLinterCwd '%s:h'
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'mmc',
|
2021-03-01 20:11:10 +00:00
|
|
|
\ ale#Escape('mmc') . ' --errorcheck-only --make --output-compile-error-lines 100 %s:t:r'
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let b:ale_mercury_mmc_executable = 'foo'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
|
|
|
AssertLinter 'foo',
|
2021-03-01 20:11:10 +00:00
|
|
|
\ ale#Escape('foo') . ' --errorcheck-only --make --output-compile-error-lines 100 %s:t:r'
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let b:ale_mercury_mmc_options = '--bar'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
|
|
|
AssertLinter 'mmc',
|
2021-03-01 20:11:10 +00:00
|
|
|
\ ale#Escape('mmc') . ' --errorcheck-only --bar %s:t:r'
|