ale#path#CdString include ale#Escape

This commit is contained in:
paihu
2018-10-23 23:20:27 +09:00
parent bc3ccd6e04
commit f4395f5b8c
20 changed files with 67 additions and 67 deletions

View File

@@ -11,14 +11,14 @@ After:
Execute(The default commands should be correct):
AssertLinter 'go',
\ ale#path#CdString(ale#Escape(expand('%:p:h')))
\ ale#path#CdString(expand('%:p:h'))
\ . 'go test -c -o /dev/null ./'
Execute(Extra options should be supported):
let g:ale_go_gobuild_options = '--foo-bar'
AssertLinter 'go',
\ ale#path#CdString(ale#Escape(expand('%:p:h')))
\ ale#path#CdString(expand('%:p:h'))
\ . 'go test --foo-bar -c -o /dev/null ./'
let g:ale_go_gobuild_options = ''
@@ -27,5 +27,5 @@ Execute(The executable should be configurable):
let g:ale_go_go_executable = 'foobar'
AssertLinter 'foobar',
\ ale#path#CdString(ale#Escape(expand('%:p:h')))
\ ale#path#CdString(expand('%:p:h'))
\ . 'foobar test -c -o /dev/null ./'