2020-08-02 16:58:49 +00:00
|
|
|
|
Before:
|
|
|
|
|
Save g:ale_dhall_executable
|
|
|
|
|
Save g:ale_dhall_options
|
|
|
|
|
|
|
|
|
|
" Use an invalid global executable, so we don’t match it.
|
|
|
|
|
let g:ale_dhall_executable = 'odd-dhall'
|
|
|
|
|
let g:ale_dhall_options = '--ascii'
|
|
|
|
|
|
2021-03-01 20:11:10 +00:00
|
|
|
|
call ale#assert#SetUpFixerTest('dhall', 'dhall-lint')
|
2020-08-02 16:58:49 +00:00
|
|
|
|
|
|
|
|
|
After:
|
2020-09-14 02:20:53 +00:00
|
|
|
|
call ale#assert#TearDownFixerTest()
|
2020-08-02 16:58:49 +00:00
|
|
|
|
|
|
|
|
|
Execute(The dhall-lint callback should return the correct options):
|
2020-09-14 02:20:53 +00:00
|
|
|
|
AssertFixer
|
2020-08-02 16:58:49 +00:00
|
|
|
|
\ {
|
|
|
|
|
\ 'command': ale#Escape('odd-dhall')
|
2021-08-09 11:43:50 +00:00
|
|
|
|
\ . ' --ascii'
|
|
|
|
|
\ . ' lint'
|
2020-09-14 02:20:53 +00:00
|
|
|
|
\ }
|