mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-06 01:47:47 +08:00
Merge remote-tracking branch 'AlexeiDrake/master' into bugfix/c-lsp-build-dir-settings
This commit is contained in:
18
test/fixers/test_hindent_fixer_callback.vader
Normal file
18
test/fixers/test_hindent_fixer_callback.vader
Normal file
@@ -0,0 +1,18 @@
|
||||
Before:
|
||||
call ale#test#SetDirectory('/testplugin/test/fixers')
|
||||
|
||||
After:
|
||||
Restore
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The hindent callback should return the correct default values):
|
||||
call ale#test#SetFilename('../haskell_files/testfile.hs')
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': ale#Escape('hindent')
|
||||
\ . ' %t',
|
||||
\ },
|
||||
\ ale#fixers#hindent#Fix(bufnr(''))
|
||||
Reference in New Issue
Block a user