diff options
author | jhlink <jhlink@users.noreply.github.com> | 2020-07-29 01:36:45 -0400 |
---|---|---|
committer | jhlink <jhlink@users.noreply.github.com> | 2020-07-29 01:36:45 -0400 |
commit | 428c5f94dab423d4d1af0ef46d51999d2142e1eb (patch) | |
tree | 3197598dc66badbefc6b8afdc57e212d1fa2825b /test/fixers | |
parent | f4cff3bc06e35a1d5861972d9e1cea615255e989 (diff) | |
download | ale-428c5f94dab423d4d1af0ef46d51999d2142e1eb.zip |
fix: Use ALE to reliably find project options
Diffstat (limited to 'test/fixers')
-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('')) |