1
0
Fork 0
mirror of synced 2024-07-02 13:31:09 -04:00
ultimate-vim/sources_non_forked/ale/test/fixers/test_zigfmt_fixer_callback.vader

21 lines
495 B
Plaintext
Raw Normal View History

2022-05-19 09:16:38 -04:00
Before:
call ale#assert#SetUpFixerTest('zig', 'zigfmt')
After:
call ale#assert#TearDownFixerTest()
Execute(The zig callback should return the correct default values):
AssertFixer {
\ 'command': ale#Escape('zig') . ' fmt %t',
\ 'read_temporary_file': 1,
\}
Execute(The zig callback should allow custom zig executables):
let g:ale_zig_zigfmt_executable = 'foo/bar'
AssertFixer {
\ 'command': ale#Escape('foo/bar') . ' fmt %t',
\ 'read_temporary_file': 1,
\}