2018-02-10 19:04:43 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('pony', 'ponyc')
|
2018-02-10 19:04:43 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-02-10 19:04:43 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The default ponyc command should be correct):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'ponyc', ale#Escape('ponyc') . ' --pass paint'
|
2018-02-10 19:04:43 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The pony executable and options should be configurable):
|
|
|
|
let b:ale_pony_ponyc_executable = 'foobar'
|
|
|
|
let b:ale_pony_ponyc_options = '--some-option'
|
2018-02-10 19:04:43 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' --some-option'
|