This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_luac_command_callback.vader
2018-01-08 23:32:02 +08:00

16 lines
483 B
Text

Before:
runtime ale_linters/lua/luac.vim
After:
call ale#linter#Reset()
Execute(The default command should be correct):
AssertEqual ale#Escape('luac') . ' -p -',
\ join(split(ale_linters#lua#luac#GetCommand(1)))
Execute(The luac executable should be configurable):
let g:ale_lua_luac_executable = 'luac.sh'
AssertEqual 'luac.sh', ale_linters#lua#luac#GetExecutable(1)
AssertEqual ale#Escape('luac.sh') . ' -p -',
\ join(split(ale_linters#lua#luac#GetCommand(1)))