diff options
Diffstat (limited to 'test/fixers/test_astyle_fixer_callback.vader')
-rw-r--r-- | test/fixers/test_astyle_fixer_callback.vader | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/fixers/test_astyle_fixer_callback.vader b/test/fixers/test_astyle_fixer_callback.vader index 60a18213..cbec4493 100644 --- a/test/fixers/test_astyle_fixer_callback.vader +++ b/test/fixers/test_astyle_fixer_callback.vader @@ -65,3 +65,14 @@ Execute(The astyle callback should return the correct default values with an opt \ . ' --stdin=' \ }, \ ale#fixers#astyle#Fix(bufnr('')) + +Execute(The astyle callback should find nearest default option file _astylrc): + call ale#test#SetFilename('../test_c_projects/makefile_project/subdir/file.c') + + AssertEqual + \ { + \ 'command': ale#Escape('xxxinvalid') + \ . ' --project=_astylerc' + \ . ' --stdin=' + \ }, + \ ale#fixers#astyle#Fix(bufnr('')) |