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

28 lines
703 B
Plaintext
Vendored

Include: include/setup.vader
Execute (makeprg: exe):
Save &makeprg
let &makeprg = 'my-make'
let makers = neomake#GetEnabledMakers()
AssertEqual len(makers), 1
let maker = makers[0]
AssertEqual maker.exe, 'my-make'
AssertEqual maker.args, []
let jobinfo = NeomakeTestsFakeJobinfo()
let jobinfo.file_mode = 0
AssertEqual maker.args, []
AssertEqual maker.append_file, 0
Execute (makeprg: exe and args):
Save &makeprg
let &makeprg = 'my-make with-arg'
let makers = neomake#GetEnabledMakers()
AssertEqual len(makers), 1
let maker = makers[0]
AssertEqual maker.exe, &shell
AssertEqual maker.args, [&shellcmdflag, 'my-make with-arg']
AssertEqual maker.append_file, 0