1
0
Fork 0
mirror of synced 2024-06-29 20:11:09 -04:00
ultimate-vim/sources_non_forked/ale/test/fixers/test_rustfmt_fixer_callback.vader
2022-05-19 21:16:38 +08:00

17 lines
561 B
Plaintext

Before:
call ale#assert#SetUpFixerTest('rust', 'rustfmt')
After:
call ale#assert#TearDownFixerTest()
Execute(The rustfmt callback should return the correct default values):
call ale#test#SetFilename('../test-files/rust/testfile.rs')
AssertFixer {'command': ale#Escape('rustfmt')}
Execute(The rustfmt callback should include custom rustfmt options):
let g:ale_rust_rustfmt_options = "--skip-children"
call ale#test#SetFilename('../test-files/rust/testfile.rs')
AssertFixer {'command': ale#Escape('rustfmt') . ' ' . g:ale_rust_rustfmt_options}