mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-02 09:33:31 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -17,7 +17,7 @@ After:
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
Execute(The clang-format callback should return the correct default values):
|
||||
call ale#test#SetFilename('c_paths/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/c/dummy.c')
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
@@ -27,7 +27,7 @@ Execute(The clang-format callback should return the correct default values):
|
||||
\ ale#fixers#clangformat#Fix(bufnr(''))
|
||||
|
||||
Execute(The clangformat callback should include any additional options):
|
||||
call ale#test#SetFilename('c_paths/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/c/dummy.c')
|
||||
let g:ale_c_clangformat_options = '--some-option'
|
||||
|
||||
AssertEqual
|
||||
@@ -39,7 +39,7 @@ Execute(The clangformat callback should include any additional options):
|
||||
\ ale#fixers#clangformat#Fix(bufnr(''))
|
||||
|
||||
Execute(The clangformat callback should include style options as well):
|
||||
call ale#test#SetFilename('c_paths/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/c/dummy.c')
|
||||
let g:ale_c_clangformat_options = '--some-option'
|
||||
let g:ale_c_clangformat_style_option = '{BasedOnStyle: Microsoft, ColumnLimit:80,}'
|
||||
|
||||
@@ -52,7 +52,7 @@ Execute(The clangformat callback should include style options as well):
|
||||
\ ale#fixers#clangformat#Fix(bufnr(''))
|
||||
|
||||
Execute(The clangformat callback should use local file instead of style options):
|
||||
call ale#test#SetFilename('clangformat_paths/with_clangformat/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/clangformat/with_clangformat/dummy.c')
|
||||
let g:ale_c_clangformat_options = '--some-option'
|
||||
let g:ale_c_clangformat_style_option = '{BasedOnStyle: Microsoft, ColumnLimit:80,}'
|
||||
let g:ale_c_clangformat_use_local_file = 1
|
||||
|
||||
Reference in New Issue
Block a user