ale/test/linter/test_pony_ponyc.vader

15 lines
449 B
Plaintext
Raw Permalink Normal View History

2018-02-10 19:04:43 +00:00
Before:
call ale#assert#SetUpLinterTest('pony', 'ponyc')
2018-02-10 19:04:43 +00:00
After:
call ale#assert#TearDownLinterTest()
2018-02-10 19:04:43 +00:00
Execute(The default ponyc command should be correct):
AssertLinter 'ponyc', ale#Escape('ponyc') . ' --pass paint'
2018-02-10 19:04:43 +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
AssertLinter 'foobar', ale#Escape('foobar') . ' --some-option'