2017-10-21 17:31:49 +00:00
|
|
|
Before:
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#assert#SetUpFixerTest('rust', 'rustfmt')
|
2017-10-21 17:31:49 +00:00
|
|
|
|
|
|
|
After:
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#assert#TearDownFixerTest()
|
2017-10-21 17:31:49 +00:00
|
|
|
|
|
|
|
Execute(The rustfmt callback should return the correct default values):
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/rust/testfile.rs')
|
2017-10-21 17:31:49 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertFixer {'command': ale#Escape('rustfmt')}
|
2017-10-21 17:31:49 +00:00
|
|
|
|
|
|
|
Execute(The rustfmt callback should include custom rustfmt options):
|
|
|
|
let g:ale_rust_rustfmt_options = "--skip-children"
|
2021-03-20 22:11:22 +00:00
|
|
|
call ale#test#SetFilename('../test-files/rust/testfile.rs')
|
2017-10-21 17:31:49 +00:00
|
|
|
|
2021-03-20 22:11:22 +00:00
|
|
|
AssertFixer {'command': ale#Escape('rustfmt') . ' ' . g:ale_rust_rustfmt_options}
|