1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:20:06 +08:00
SpaceVim/bundle/neomake/tests/isolated/ft_vim.vader
2020-06-13 14:06:35 +08:00

31 lines
920 B
Plaintext

Include: ../include/setup.vader
Execute (vint: detects stdin support):
runtime autoload/neomake/makers/ft/vim.vim
function! neomake#compat#systemlist(...)
return ''
endfunction
let maker = neomake#GetMaker('vint', 'vim')
AssertEqual maker.supports_stdin({}), 0
runtime autoload/neomake/makers/ft/vim.vim
function! neomake#compat#systemlist(...)
return ['0.3.19']
endfunction
let maker = neomake#GetMaker('vint', 'vim')
AssertEqual maker.supports_stdin({}), 0
AssertEqual index(maker.args, '--stdin-display-name'), -1
runtime autoload/neomake/makers/ft/vim.vim
function! neomake#compat#systemlist(...)
return ['0.4a']
endfunction
let maker = neomake#GetMaker('vint', 'vim')
AssertEqual maker.supports_stdin({}), 1
AssertEqual maker.args[-2:], ['--stdin-display-name', '%:.']
" Restore if not profiling.
if !v:profiling
runtime autoload/neomake/compat.vim
endif