fix: Remove explicit calls to file path in astyle

This commit is contained in:
jhlink
2020-07-26 22:02:32 -04:00
parent 75723e4522
commit 0e6578cf65
2 changed files with 7 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ Execute(The astyle callback should return the correct default values):
AssertEqual
\ {
\ 'command': ale#Escape(g:ale_c_astyle_executable)
\ . ' --stdin=' . ale#Escape(targetfile)
\ . ' --stdin='
\ },
\ ale#fixers#astyle#Fix(bufnr(''))
@@ -32,7 +32,7 @@ Execute(The astyle callback should support cpp files):
AssertEqual
\ {
\ 'command': ale#Escape(g:ale_cpp_astyle_executable)
\ . ' --stdin=' . ale#Escape(targetfile)
\ . ' --stdin='
\ },
\ ale#fixers#astyle#Fix(bufnr(''))
@@ -45,8 +45,8 @@ Execute(The astyle callback should support cpp files with option file set):
AssertEqual
\ {
\ 'command': ale#Escape('invalidpp')
\ . ' --stdin=' . ale#Escape(targetfile)
\ . ' --project=' . g:ale_cpp_astyle_options
\ . ' --stdin='
\ },
\ ale#fixers#astyle#Fix(bufnr(''))
@@ -59,7 +59,7 @@ Execute(The astyle callback should return the correct default values with an opt
AssertEqual
\ {
\ 'command': ale#Escape('xxxinvalid')
\ . ' --stdin=' . ale#Escape(targetfile)
\ . ' --project=' . g:ale_c_astyle_options
\ . ' --stdin='
\ },
\ ale#fixers#astyle#Fix(bufnr(''))