diff options
author | jhlink <jhlink@users.noreply.github.com> | 2020-07-25 21:25:11 -0400 |
---|---|---|
committer | jhlink <jhlink@users.noreply.github.com> | 2020-07-25 21:25:11 -0400 |
commit | a9799fe90e95468ce4d176206e3a59dd7f881fa7 (patch) | |
tree | 2d16aab3d18abf8efb5b43854c28902b59f66780 /test | |
parent | b3ad7bb3d0acedf00ab411dbd642f8d759a213a1 (diff) | |
download | ale-a9799fe90e95468ce4d176206e3a59dd7f881fa7.zip |
test: Add cpp test case for astyle
Diffstat (limited to 'test')
-rw-r--r-- | test/fixers/test_astyle_fixer_callback.vader | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixers/test_astyle_fixer_callback.vader b/test/fixers/test_astyle_fixer_callback.vader index 2fc57ad0..9eb52788 100644 --- a/test/fixers/test_astyle_fixer_callback.vader +++ b/test/fixers/test_astyle_fixer_callback.vader @@ -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('')) |