2018-03-25 13:33:24 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('mercury', 'mmc')
|
|
|
|
call ale#test#SetFilename('dummy')
|
2018-03-25 13:33:24 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-03-25 13:33:24 -04:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'mmc',
|
2018-03-25 13:33:24 -04:00
|
|
|
\ ale#path#BufferCdString(bufnr(''))
|
2018-08-02 18:44:12 -04:00
|
|
|
\ . ale#Escape('mmc') . ' --errorcheck-only --make --output-compile-error-lines 100 dummy'
|
2018-03-25 13:33:24 -04:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let b:ale_mercury_mmc_executable = 'foo'
|
2018-07-15 13:24:53 -04:00
|
|
|
|
|
|
|
AssertLinter 'foo',
|
2018-03-25 13:33:24 -04:00
|
|
|
\ ale#path#BufferCdString(bufnr(''))
|
2018-08-02 18:44:12 -04:00
|
|
|
\ . ale#Escape('foo') . ' --errorcheck-only --make --output-compile-error-lines 100 dummy'
|
2018-03-25 13:33:24 -04:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let b:ale_mercury_mmc_options = '--bar'
|
2018-07-15 13:24:53 -04:00
|
|
|
|
|
|
|
AssertLinter 'mmc',
|
2018-03-25 13:33:24 -04:00
|
|
|
\ ale#path#BufferCdString(bufnr(''))
|
2018-08-02 18:44:12 -04:00
|
|
|
\ . ale#Escape('mmc') . ' --errorcheck-only --bar dummy'
|