mirror of
https://github.com/dense-analysis/ale
synced 2025-01-11 08:59:43 +00:00
test: Add cpp test case for astyle
This commit is contained in:
parent
b3ad7bb3d0
commit
a9799fe90e
@ -21,3 +21,16 @@ Execute(The astyle callback should return the correct default values):
|
||||
\ . ' %t',
|
||||
\ },
|
||||
\ ale#fixers#astyle#Fix(bufnr(''))
|
||||
|
||||
Execute(The astyle callback should support cpp files):
|
||||
call ale#test#SetFilename('../cpp_files/dummy.cpp')
|
||||
let g:ale_cpp_astyle_executable = 'xxxinvalid'
|
||||
set filetype=cpp " The test fails without this
|
||||
|
||||
AssertEqual
|
||||
\ {
|
||||
\ 'read_temporary_file': 1,
|
||||
\ 'command': ale#Escape('xxxinvalid')
|
||||
\ . ' %t',
|
||||
\ },
|
||||
\ ale#fixers#astyle#Fix(bufnr(''))
|
||||
|
Loading…
Reference in New Issue
Block a user